updateDocumentWithTtl

abstract fun updateDocumentWithTtl(sidOrUniqueName: String, jsonData: String, ttlSeconds: Long, callback: SuccessListener<Unit>): CancellationToken

Set value of the SyncDocumentJava as a JSON object without opening it.

Return

CancellationToken which allows to cancel network request.

Parameters

sidOrUniqueName

SID or unique name of existing SyncDocumentJava.

jsonData

New document data as a serialised JSON object.

ttlSeconds

Time to live in seconds from now or 0 to indicate no expiry.

callback

Async result listener. See SuccessListener.