EventEmitter

interface EventEmitter

Interface implemented by objects that are the source of real time events from the PubNub network.

Inheritors

Functions

Link copied to clipboard
abstract fun addListener(listener: EventListener)

Add a listener.

Link copied to clipboard
abstract fun removeAllListeners()

Removes all listeners.

Link copied to clipboard
abstract fun removeListener(listener: Listener)

Remove a listener.

Link copied to clipboard
abstract fun setOnChannelMetadata(onChannelMetadataHandler: OnChannelMetadataHandler?)

Sets the handler for incoming channelMetadata events. This method allows the assignment of an OnChannelMetadataHandler implementation or lambda expression to handle incoming presence events.

Link copied to clipboard
abstract fun setOnFile(onFileHandler: OnFileHandler?)

Sets the handler for incoming file events. This method allows the assignment of an OnFileHandler implementation or lambda expression to handle incoming presence events.

Link copied to clipboard
abstract fun setOnMembership(onMembershipHandler: OnMembershipHandler?)

Sets the handler for incoming membership events. This method allows the assignment of an OnMembershipHandler implementation or lambda expression to handle incoming presence events.

Link copied to clipboard
abstract fun setOnMessage(onMessageHandler: OnMessageHandler?)

Sets the handler for incoming message events. This method allows the assignment of an OnMessageHandler implementation or lambda expression to handle incoming messages.

Link copied to clipboard
abstract fun setOnMessageAction(onMessageActionHandler: OnMessageActionHandler?)

Sets the handler for incoming messageAction events. This method allows the assignment of an OnMessageActionHandler implementation or lambda expression to handle incoming presence events.

Link copied to clipboard
abstract fun setOnPresence(onPresenceHandler: OnPresenceHandler?)

Sets the handler for incoming presence events. This method allows the assignment of an OnPresenceHandler implementation or lambda expression to handle incoming presence events.

Link copied to clipboard
abstract fun setOnSignal(onSignalHandler: OnSignalHandler?)

Sets the handler for incoming signal events. This method allows the assignment of an OnSignalHandler implementation or lambda expression to handle incoming signals.

Link copied to clipboard
abstract fun setOnUuidMetadata(onUuidMetadataHandler: OnUuidMetadataHandler?)

Sets the handler for incoming uuidMetadata events. This method allows the assignment of an OnUuidMetadataHandler implementation or lambda expression to handle incoming presence events.