EventListener

actual interface EventListener : <ERROR CLASS> ERROR CLASS: Symbol not found for Listener

Implement this interface and pass it into EventEmitter.addListener to listen for events from the PubNub real-time network.

Inheritors

expect interface EventListener : Listener

Implement this interface and pass it into EventEmitter.addListener to listen for events from the PubNub real-time network.

actual interface EventListener : Listener

Implement this interface and pass it into EventEmitter.addListener to listen for events from the PubNub real-time network.

actual interface EventListener : Listener

Implement this interface and pass it into EventEmitter.addListener to listen for events from the PubNub real-time network.

Inheritors

Properties

Link copied to clipboard
abstract val onFile: (PubNub, ERROR CLASS: Symbol not found for PNFileEventResult) -> Unit
Link copied to clipboard
abstract val onMessage: (PubNub, ERROR CLASS: Symbol not found for PNMessageResult) -> Unit
Link copied to clipboard
abstract val onMessageAction: (PubNub, ERROR CLASS: Symbol not found for PNMessageActionResult) -> Unit
Link copied to clipboard
Link copied to clipboard
abstract val onPresence: (PubNub, ERROR CLASS: Symbol not found for PNPresenceEventResult) -> Unit
Link copied to clipboard
abstract val onSignal: (PubNub, ERROR CLASS: Symbol not found for PNSignalResult) -> Unit
Link copied to clipboard
abstract val underlying: ERROR CLASS: Symbol not found for KMPEventListener

Functions

Link copied to clipboard
open fun file(pubnub: PubNub, result: PNFileEventResult)

Receive file events in subscribed channels.

Link copied to clipboard
open fun message(pubnub: PubNub, result: PNMessageResult)

Receive messages at subscribed channels.

Link copied to clipboard
open fun messageAction(pubnub: PubNub, result: PNMessageActionResult)

Receive message actions for messages in subscribed channels.

Link copied to clipboard
open fun objects(pubnub: PubNub, result: PNObjectEventResult)

Receive channel metadata and UUID metadata events in subscribed channels.

Link copied to clipboard
open fun presence(pubnub: PubNub, result: PNPresenceEventResult)

Receive presence events for channels subscribed with presence enabled via passing com.pubnub.api.v2.subscriptions.SubscriptionOptions.receivePresenceEvents in com.pubnub.api.v2.entities.Subscribable.subscription.

Link copied to clipboard
open fun signal(pubnub: PubNub, result: PNSignalResult)

Receive signals at subscribed channels.