Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.datasync / TransactionOperation / decrement

decrement

val decrement: (DatasyncValuable) -> TransactionOperation.Set

Transaction function that atomically decrements the value of a data node or sets its initial value to 0 if it had no value.

This function is expected to be passed to the DatasyncNode.runTransaction method.