Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.datasync / DatasyncManager / subscribeToAuthenticationChange

subscribeToAuthenticationChange

fun subscribeToAuthenticationChange(callback: (AuthenticationEvent) -> Unit): AuthenticationSubscription

Subscribes to changes on the authentication state of the DatasyncService associated with this DatasyncManager instance, and calls asynchronously the given callback each time this state changes.

The returned AuthenticationSubscription can be cancelled further when needed.