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