LiveLikePresenceClient
interface LiveLikePresenceClient
Functions
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
join channels to show your presence
Link copied to clipboard
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
stops all active presence event feeds
Link copied to clipboard
stops the presence event feed associated to this callback