Package io.ably.lib.objects.state
Interface ObjectsStateChange.Listener
- Enclosing interface:
- ObjectsStateChange
public static interface ObjectsStateChange.Listener
Interface for receiving notifications about Objects synchronization state changes.
Implement this interface and register it with an ObjectsStateEmitter to be notified when synchronization state transitions occur.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonStateChanged(ObjectsStateEvent objectsStateEvent) Called when the synchronization state changes.
-
Method Details
-
onStateChanged
Called when the synchronization state changes.- Parameters:
-
objectsStateEvent- The new state event (SYNCING or SYNCED)
-