handle

abstract fun handle(pnMessageActionResult: PNMessageActionResult)

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());
};

See also

for more information about the message result provided to this handler.