kotlin

//pubnub-kotlin-api/com.pubnub.api.v2.callbacks

Package-level declarations

Types

Name Summary
EventEmitter [common]
interface EventEmitter
Interface implemented by objects that are the source of real time events from the PubNub network.
EventListener [common, apple, js]
[common]
expect interface EventListener : Listener
[apple, js]
actual interface EventListener : Listener
Implement this interface and pass it into EventEmitter.addListener to listen for events from the PubNub real-time network.
[jvm]
actual interface EventListener : Listener
Implement this interface and pass it into EventEmitter.addListener to listen for events from the PubNub real-time network.
EventListenerImpl [apple]
class EventListenerImpl(val underlying: <Error class: unknown class>, val onMessage: (PubNub, PNMessageResult) -> Unit, val onPresence: (PubNub, PNPresenceEventResult) -> Unit, val onSignal: (PubNub, PNSignalResult) -> Unit, val onMessageAction: (PubNub, PNMessageActionResult) -> Unit, val onObjects: (PubNub, PNObjectEventResult) -> Unit, val onFile: (PubNub, PNFileEventResult) -> Unit) : EventListener
StatusEmitter [jvm]
interface StatusEmitter
Interface implemented by objects that manage the subscription connection to the PubNub network and can be monitored for connection state changes.
StatusListener [common, apple, js]
[common]
expect interface StatusListener : Listener
[apple, js]
actual interface StatusListener : Listener
Implement this interface and pass it into com.pubnub.api.v2.callbacks.StatusEmitter.addListener to listen for PubNub connection status changes.
[jvm]
actual interface StatusListener : Listener
Implement this interface and pass it into com.pubnub.api.v2.callbacks.StatusEmitter.addListener to listen for PubNub connection status changes.
StatusListenerImpl [apple]
class StatusListenerImpl(val underlying: <Error class: unknown class>, val onStatusChange: (PubNub, PNStatus) -> Unit) : StatusListener