RoomWatcher

class RoomWatcher constructor(okHttpClient: <Error class: unknown class> = OkHttpClient.Builder().build(), handler: <Error class: unknown class> = Handler(Looper.getMainLooper()))

Monitors room occupancy via signaling. Use this to show room status before joining.

Constructors

Link copied to clipboard
constructor(okHttpClient: <Error class: unknown class> = OkHttpClient.Builder().build(), handler: <Error class: unknown class> = Handler(Looper.getMainLooper()))

Properties

Link copied to clipboard

Current occupancy map of watched rooms, keyed by room ID.

Link copied to clipboard

Callback for room status change events.

Functions

Link copied to clipboard
fun stop()

Stop watching all rooms and disconnect.

Link copied to clipboard
fun watchRooms(roomIds: List<String>, host: String?)

Start watching the given room IDs for occupancy changes.