Sync Document
SyncDocument is an arbitrary JSON value.
You can set, get and modify this value.
To obtain an instance of a SyncDocument use SyncClient.documents
Properties
A date when this SyncDocument was created.
A date this SyncDocument will expire, null
means will not expire.
A date when this SyncDocument was last updated.
Provides scope of Flows objects to get notified about events.
true
when this SyncDocument is offline and doesn't receive updates from backend, false
otherwise.
true
when this SyncDocument has been removed on the backend, false
otherwise.
An immutable system-assigned identifier of this SyncDocument.
Current subscription state.
An optional unique name for this document, assigned at creation time.
Functions
Close this SyncDocument.
Deserializes the SyncDocument.data into a value of type T using a deserializer retrieved from reified type parameter.
Mutate value of the SyncDocument using provided Mutator function.
Serializes the value returned by Mutator function into an equivalent JsonObject using a serializer retrieved from reified type parameter and uses the JsonObject to mutate value of the SyncDocument
Mutate value of the SyncDocument using provided Mutator function.
Serializes the value returned by Mutator function into an equivalent JsonObject using a serializer retrieved from reified type parameter and uses the JsonObject to mutate value of the SyncDocument
Remove this SyncDocument.
Set value of the SyncDocument as a JSON object.
Serializes the given value into an equivalent JsonObject using a serializer retrieved from reified type parameter and set it as value of the SyncDocument.
Set value of the SyncDocument as a JSON object.
Serializes the given value into an equivalent JsonObject using a serializer retrieved from reified type parameter and set it as value of the SyncDocument.
Set time to live for this SyncDocument.
Executes the given block function on SyncDocument and then closes it down correctly whether an exception is thrown or not.