handle

abstract fun handle(pnChannelMetadataResult: PNChannelMetadataResult)

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

Usage example:


OnChannelMetadataHandler handler = pnChannelMetadataResult -> {
    System.out.println("Received channel metadata event: " + pnChannelMetadataResult.getEvent());
};

See also

for more information about the channel metadata result provided to this handler.