presence

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.

Parameters

pubnub

The client instance which has this listener attached.

result

Wrapper around a presence event.