SyncListObserver
Observer for all operations on a SyncList. You should create your own subclass of ListObserver and override functions you are interested in. Observer will receive callbacks for all operations on a SyncList. To distinguish parallel streams of local operations your application could use local flow identifier. Callbacks in the observer will be called from a background thread. You will need to repost your work to UI thread if you do any UI-related operations in the callback.
Constructors
Functions
Link copied to clipboard
This callback is invoked when an entire SyncList has been removed by a local request.
Link copied to clipboard
This callback is invoked when a SyncList operation has encountered an error.
Link copied to clipboard
This callback is invoked when SyncList item has been added by a local request.
Link copied to clipboard
open fun onItemRemoved( context: EventContext, itemIndex: Long, previousItemData: JSONObject)
Content copied to clipboard
This callback is invoked when SyncList item has been removed by a local request.
Link copied to clipboard
open fun onItemUpdated( context: EventContext, item: SyncList.Item, previousItemData: JSONObject)
Content copied to clipboard
This callback is invoked when SyncList item has been updated by a local request.