CoHostState

data class CoHostState(val coHostStatus: StateFlow<CoHostStatus>, val connected: StateFlow<List<SeatUserInfo>>, val invitees: StateFlow<List<SeatUserInfo>>, val applicant: StateFlow<SeatUserInfo?>, val candidatesCursor: StateFlow<String>, val candidates: StateFlow<List<SeatUserInfo>>)

Cross-room connection related state data provided externally by CoHostStore

Overview

A comprehensive snapshot of the current cross-room connection session state. This structure contains all relevant information about connection status, connected hosts, pending invitations and applications.

State Properties Overview

PropertyTypeDescription
coHostStatusStateFlow<CoHostStatus>Real-time cross-room connection status
connectedStateFlow<List<SeatUserInfo>>List of hosts currently connected with current live room
inviteesStateFlow<List<SeatUserInfo>>List of hosts to whom requests have been sent
applicantStateFlow<SeatUserInfo?>Host who initiated connection request to current live room
candidatesCursorStateFlow<String>Recommended user list cursor
candidatesStateFlow<List<SeatUserInfo>>Recommended user list

Tip: State is automatically updated when hosts join/leave connection, send/cancel invitations, or receive applications. Subscribe to coHostState to receive real-time updates.

Constructors

Link copied to clipboard
constructor(coHostStatus: StateFlow<CoHostStatus>, connected: StateFlow<List<SeatUserInfo>>, invitees: StateFlow<List<SeatUserInfo>>, applicant: StateFlow<SeatUserInfo?>, candidatesCursor: StateFlow<String>, candidates: StateFlow<List<SeatUserInfo>>)

Properties

Link copied to clipboard
val applicant: StateFlow<SeatUserInfo?>

Host who initiated connection request to current live room.

Link copied to clipboard
val candidates: StateFlow<List<SeatUserInfo>>

Recommended user list.

Link copied to clipboard
val candidatesCursor: StateFlow<String>

Recommended user list cursor.

Link copied to clipboard
val coHostStatus: StateFlow<CoHostStatus>

Real-time cross-room connection status.

Link copied to clipboard
val connected: StateFlow<List<SeatUserInfo>>

List of hosts currently connected with current live room.

Link copied to clipboard
val invitees: StateFlow<List<SeatUserInfo>>

List of hosts to whom requests have been sent.