Barrage State
data class BarrageState(val messageList: StateFlow<List<Barrage>>, allowSendMessage: StateFlow<Boolean>)
Barrage state, managing the barrage data state of the current room.
Overview
Contains the barrage message list of the current room, supports real-time updates.
State Property Overview
| Property | Type | Description |
| messageList | StateFlow<List<Barrage>> | Barrage message list of the current room |
Tip: Subscribe to barrageState to receive real-time updates of barrage data in the room.