mutateListItemWithTtl

abstract fun mutateListItemWithTtl(listSidOrUniqueName: String, itemIndex: Long, ttlSeconds: Long, mutator: SyncMutator, callback: SuccessListener<SyncListJava.Item>): CancellationToken

Mutate value of the SyncListJava.Item using provided Mutator function.

Return

CancellationToken which allows to cancel network request.

Parameters

listSidOrUniqueName

SID or unique name of existing SyncListJava.

itemIndex

Index of the item to mutate.

mutator

SyncMutator which will be applied to the list item.

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 SyncListJava.Item in its onSuccess() callback or any error in onFailure() callback.