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

writeIfNone

@JvmStatic fun writeIfNone(value: Any?): (DatasyncValuable) -> TransactionOperation

Transaction function that atomically sets a given value to a data node only if it had no value.

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