Interface DittoPresence.PresenceGraphChangedListener
- Enclosing class:
DittoPresence
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Listener interface for receiving presence graph updates.
Implement this interface to be notified when the Ditto presence graph changes, such as when peers join or leave the mesh network, or when connections change.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidonGraphChanged(@NonNull DittoPresenceGraph graph) Called when the presence graph has changed.
-
Method Details
-
onGraphChanged
Called when the presence graph has changed.
This method is invoked immediately when an observer is registered, and then whenever there are changes to the presence graph.
- Parameters:
graph- the updatedDittoPresenceGraph.
-