mutateItem

abstract fun mutateItem(itemIndex: Long, mutator: SyncMutator, callback: SuccessListener<SyncListJava.Item>): CancellationToken

Mutate value of the Item using provided Mutator function.

Return

CancellationToken which allows to cancel network request.

Parameters

itemIndex

Index of the item to mutate.

mutator

SyncMutator which will be applied to the list item.

callback

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