Changes

Jump to: navigation, search

WebAPI/DataStore

66 bytes removed, 17:23, 22 November 2013
Sync
=== Sync ===
The synchronization of a DataStore with a 'private' app storage can be done using the 'sync' method. Calling this method, DataStore creates a DataStoreCursor that helps the app with the synchronization starting from scratch or for a valid revisionId. When a cursor is active, onchange events are not sent to the app. The sync operation can be terminated calling cursor.close(). If something changes in the DataStore when the cursor is synchronize the app, all the changes will be managed by the cursor as additional operation: this means that when the cursor completes its tasks, the app will be always in sync with the current revisionId of the DataStore.
The basic usage of the cursor is this:
Confirm
53
edits

Navigation menu