BVMessageManager
class BVMessageManager(chatRoomToken: String, chatRoomManager: ChatRoomManager, refreshToken: String?, mqttManager: MqttManager, eventListener: EventListener?, messageListener: MessageListener?) : MessageManager
Manages the connection and communication with the chat room and MQTT broker.
Constructors
Link copied to clipboard
constructor(chatRoomToken: String, chatRoomManager: ChatRoomManager, refreshToken: String?, mqttManager: MqttManager, eventListener: EventListener?, messageListener: MessageListener?)
Types
Functions
Link copied to clipboard
open override fun deleteMessage(messageId: String, userCustomName: String, timestampReceivedAt: String?)
Deletes a message in the chat room.
Link copied to clipboard
Disconnects from the chat room and MQTT broker.
Link copied to clipboard
open override fun getChatHistory(beforeAt: String?, limit: Int?, afterAt: String?, fromOldest: Boolean?, types: Array<String>?)
Retrieves the chat history.
Link copied to clipboard
open override fun getMessages(beforeAt: String?, limit: Int?, afterAt: String?, fromOldest: Boolean?, types: Array<String>?)
Retrieves messages from the chat room.
Link copied to clipboard
Mutes the chat room.
Link copied to clipboard
open override fun pinMessage(messageId: String, text: String, userId: String, userDeviceId: String, userCustomName: String)
Pins a message in the chat room.
Link copied to clipboard
Publishes a countable custom message to the chat room.
Link copied to clipboard
Publishes a custom message to the chat room.
Link copied to clipboard
Publishes a message to the chat room.
Link copied to clipboard
Refreshes the chat room token.
Link copied to clipboard
Unblocks a user in the chat room.
Link copied to clipboard
Unmutes the chat room.
Link copied to clipboard
Unpins a message in the chat room.
Link copied to clipboard
Updates the user information.
Link copied to clipboard
Updates the viewer information.