Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.datasync / DatasyncNode / catchingCancel

catchingCancel

fun catchingCancel(function: (WebcomError) -> Unit): Subscriber

Registers a cancellation callback for the next subscription to a callback function.

Note: this cancellation callback will work only for subscriptions to a callback function. In other words, it is out of the scope of subscriptions to webhooks or mobile push notifications.

Return
A Subscriber object on which a subscribe method can be further called.