subscribe To State Change
fun subscribeToStateChange(callback: (DatasyncState) -> Unit): Subscription
Content copied to clipboard
Subscribes to the DatasyncState of the DatasyncService associated with this DatasyncManager instance, and calls asynchronously the given callback each time this state changes.
The returned Subscription can be canceled further when needed.