setData

abstract fun setData(data: JSONObject, listener: SuccessListener<JSONObject>)

Set value of the document as a JSON object. Uses default metadata.

Parameters

data

New document data.

listener

Async result listener. See SuccessListener.


abstract fun setData(data: JSONObject, metadata: SyncDocument.Metadata, listener: SuccessListener<JSONObject>)

Set value of the document as a JSON object.

Parameters

data

New document data.

metadata

Optional metadata for the updated document, currently only ttl.

listener

Async result listener. See SuccessListener.