handle
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());
};
Content copied to clipboard
See also
for more information about the message result provided to this handler.