handle
This interface is designed for implementing custom handlers that respond to presence event retrieval operations. It defines a single handle method that is called with a PNPresenceEventResult instance, which contains the presence data.
Usage example:
OnPresenceHandler handler = pnPresenceEventResult -> {
System.out.println("Received presence event: " + pnPresenceEventResult.getEvent());
};
Content copied to clipboard
See also
for more information about the message result provided to this handler.