SubscribeCallback

A combined listener for status and event updates. Included for backward compatibility with previous versions of the PubNub SDK.

Setting explicit StatusListener and/or EventListener should be preferred.

Constructors

Link copied to clipboard
constructor()

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.

Link copied to clipboard
abstract fun status(pubnub: PubNub, status: PNStatus)

Receive status updates from the PubNub client, such as: