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.

@FunctionalInterface public static interface DittoPresence.PresenceGraphChangedListener

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 Type
    Method
    Description
    void
    Called when the presence graph has changed.
  • Method Details

    • onGraphChanged

      void onGraphChanged(@NonNull DittoPresenceGraph graph)

      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 updated DittoPresenceGraph.