Co Host State
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
| Property | Type | Description |
| coHostStatus | StateFlow<CoHostStatus> | Real-time cross-room connection status |
| connected | StateFlow<List<SeatUserInfo>> | List of hosts currently connected with current live room |
| invitees | StateFlow<List<SeatUserInfo>> | List of hosts to whom requests have been sent |
| applicant | StateFlow<SeatUserInfo?> | Host who initiated connection request to current live room |
| candidatesCursor | StateFlow<String> | Recommended user list cursor |
| candidates | StateFlow<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
Host who initiated connection request to current live room.
Link copied to clipboard
Recommended user list.
Link copied to clipboard
Recommended user list cursor.
Link copied to clipboard
Real-time cross-room connection status.
Link copied to clipboard
List of hosts currently connected with current live room.
Link copied to clipboard
List of hosts to whom requests have been sent.