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