handle

abstract fun handle(pnSignalResult: PNSignalResult)

This interface is designed for implementing custom handlers that respond to message retrieval operations. It defines a single handle method that is called with a PNSignalResult instance, which contains the signal.

Usage example:


OnSignalHandler handler = pnSignalResult -> {
    System.out.println("Received message: " + pnSignalResult.getMessage());
};

See also

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