Presence

class Presence(channel: Channel, opts: Presence.Options = Options.defaults)

Constructors

Link copied to clipboard
constructor(channel: Channel, opts: Presence.Options = Options.defaults)

Types

Link copied to clipboard
data class Caller(var onJoin: OnJoin = { _, _, _ -> }, var onLeave: OnLeave = { _, _, _ -> }, var onSync: OnSync = {})

Collection of callbacks with default values

Link copied to clipboard
object Companion
Link copied to clipboard

Presence Events of "state" and "diff"

Link copied to clipboard
data class Options(val events: Map<Presence.Events, String>)

Custom options that can be provided when creating Presence

Properties

Link copied to clipboard

True if the Presence has not yet initially synced

Link copied to clipboard

The channel's joinRef, set when state events occur

Link copied to clipboard

Pending join and leave diffs that need to be synced

Link copied to clipboard

The state of the Presence

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> listBy(transform: (Map.Entry<String, PresenceMap>) -> T): List<T>
Link copied to clipboard
fun onJoin(callback: OnJoin)
Link copied to clipboard
fun onLeave(callback: OnLeave)
Link copied to clipboard
fun onSync(callback: OnSync)