handle

abstract fun handle(pnFileEventResult: PNFileEventResult)

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

Usage example:


OnFileHandler handler = pnFileEventResult -> {
    System.out.println("Received file event: " + pnFileEventResult.getMessage());
};

See also

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