MessageManager

interface MessageManager

Manages messaging functionality such as connecting to chat rooms, sending messages, and handling chat room events.

Inheritors

Functions

Link copied to clipboard
abstract fun blockUser(userId: String, userDeviceId: String, userCustomName: String)

Blocks a user in the chat room.

Link copied to clipboard
abstract fun connect()

Connects to a chat room.

Link copied to clipboard
abstract fun deleteMessage(messageId: String, userCustomName: String, timestampReceivedAt: String? = null)

Deletes a message from the chat room.

Link copied to clipboard
abstract fun disconnect()

Disconnects from the chat room.

Link copied to clipboard
abstract fun getChatHistory(beforeAt: String? = null, limit: Int? = null, afterAt: String? = null, fromOldest: Boolean? = null, types: Array<String>? = null)

Retrieves chat history from the chat room.

Link copied to clipboard
abstract fun getMessages(beforeAt: String? = null, limit: Int? = null, afterAt: String? = null, fromOldest: Boolean? = null, types: Array<String>? = null)

Retrieves messages from the chat room.

Link copied to clipboard
abstract fun muteChatRoom()

Mutes the chat room.

Link copied to clipboard
abstract fun pinMessage(messageId: String, text: String, userId: String, userDeviceId: String, userCustomName: String)

Pins a message in the chat room.

Link copied to clipboard
abstract fun publishCountableCustomMessage(key: String, message: String? = null)

Publishes a countable custom message to the chat room.

Link copied to clipboard
abstract fun publishCustomMessage(customMessage: String)

Publishes a custom message to the chat room.

Link copied to clipboard
abstract fun publishMessage(message: String)

Publishes a message to the chat room.

Link copied to clipboard
abstract fun refreshToken()

Refreshes the chat room token.

Link copied to clipboard
abstract fun release()

Releases resources and cancels ongoing operations.

Link copied to clipboard
abstract fun unblockUser(userId: String)

Unblocks a previously blocked user in the chat room.

Link copied to clipboard
abstract fun unmuteChatRoom()

Unmutes the chat room.

Link copied to clipboard
abstract fun unpinMessage(messageId: String)

Unpins a previously pinned message in the chat room.

Link copied to clipboard
abstract fun updateUser(newCustomName: String)

Updates the current user's information in the chat room.

Link copied to clipboard
abstract fun updateViewerInfo(enabled: Boolean, customName: String)

Updates viewer information in the chat room.