SyncDocument
interface SyncDocument
SyncDocument is an arbitrary JSON value.
You can set, get and modify this value.
To obtain an instance of a SyncDocument use openDocument.
Functions
Link copied to clipboard
Retrieves a Date when the Document was last updated.
Link copied to clipboard
Retrieves a user-set unique name for this SyncDocument.
Link copied to clipboard
abstract fun mutateData(mutator: SyncMutator, metadata: SyncDocument.Metadata, listener: SuccessListener<JSONObject>)
Mutate value of the document using provided Mutator function.
Link copied to clipboard
Remove document.
Link copied to clipboard
abstract fun setData(data: JSONObject, metadata: SyncDocument.Metadata, listener: SuccessListener<JSONObject>)
Set value of the document as a JSON object.
Link copied to clipboard
Set time to live for document object in seconds.