BarrageState

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

PropertyTypeDescription
messageListStateFlow<List<Barrage>>Barrage message list of the current room

Tip: Subscribe to barrageState to receive real-time updates of barrage data in the room.

Constructors

Link copied to clipboard
constructor(messageList: StateFlow<List<Barrage>>, allowSendMessage: StateFlow<Boolean>)

Properties

Link copied to clipboard
val messageList: StateFlow<List<Barrage>>

Barrage message list of the current room, supports real-time updates and can be subscribed to.