setMapItemWithTtl

abstract fun setMapItemWithTtl(mapSidOrUniqueName: String, itemKey: String, jsonData: String, ttlSeconds: Long, callback: SuccessListener<SyncMapJava.Item>): CancellationToken

Set Item in the SyncMapJava without opening it.

Return

CancellationToken which allows to cancel network request.

Parameters

mapSidOrUniqueName

SID or unique name of existing SyncMapJava.

itemKey

Key of the item to set.

jsonData

Item data to set as a serialized JSON object.

ttlSeconds

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

callback

Async result listener that will receive new value of the SyncMapJava.Item in its onSuccess() callback or any error in onFailure() callback.