RoomWatcher

class RoomWatcher @JvmOverloads constructor(okHttpClient: OkHttpClient = OkHttpClient.Builder().build(), handler: Handler = Handler(Looper.getMainLooper()))

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

Constructors

Link copied to clipboard
constructor(okHttpClient: OkHttpClient = OkHttpClient.Builder().build(), handler: Handler = 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.