LiveLikePresenceClient

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun destroy()

stops all active presence event feeds

Link copied to clipboard
abstract fun getAttributes(userId: String, channels: Set<String>, completion: LiveLikeCallback<Map<String, Map<String, String>>>)

abstract fun getAttributes(userId: String, channels: Set<String>, completion: LiveLikeCallback<Map<String, Map<String, String>>>)

retrieve attributes for users on specific channels

Link copied to clipboard
abstract fun hereNow(channels: Set<String>, completion: LiveLikeCallback<Map<String, List<String>>>)

abstract fun hereNow(channels: Set<String>, completion: LiveLikeCallback<Map<String, List<String>>>)

retrieve all users currently in listed channels

Link copied to clipboard
abstract fun joinChannels(channels: Set<String>)

join channels to show your presence

Link copied to clipboard
abstract fun leaveChannels(channels: Set<String>)

leave channels to remove your presence

Link copied to clipboard
abstract fun setAttributes(channels: Set<String>, attributes: Map<String, String>, completion: LiveLikeCallback<Map<String, String>>? = null)

update attributes associate with your presence on specific channels

Link copied to clipboard
abstract fun subscribeForPresence(channels: Set<String>, callback: (PresenceEvent) -> Unit): PresenceEventCallback

starts feed of presence events and persists until unsubscribed

Link copied to clipboard
abstract fun unsubscribeAllPresence()

stops all active presence event feeds

Link copied to clipboard

stops the presence event feed associated to this callback

Link copied to clipboard
abstract fun whereNow(userId: String, completion: LiveLikeCallback<List<String>>)

abstract fun whereNow(userId: String, completion: LiveLikeCallback<List<String>>)

locate channels where a user has a presence