register MethodStatic

Register this class as the handler for notifications on its channel. This static method creates a new instance that becomes the notification handler and is this when its methods are called.

register(): RemoveFunction

@returns A function that can be called to remove the handler.

@note this method should only be called once per channel. If it is called multiple times, multiple handlers are established.

Returns - RemoveFunction

A function that can be called to remove the handler.

Defined in

Last Updated: 09 May, 2024