NEMessageChannelService

interface NEMessageChannelService : NEBaseService

消息通道服务,可用于房间内自定义消息发送和接收

Functions

addMessageChannelListener
Link copied to clipboard
abstract fun addMessageChannelListener(listener: NEMessageChannelListener)
添加消息通道监听器
removeMessageChannelListener
Link copied to clipboard
abstract fun removeMessageChannelListener(listener: NEMessageChannelListener)
移除消息通道监听器
sendCustomMessage
Link copied to clipboard
abstract fun sendCustomMessage(roomUuid: String, userUuid: String, commandId: Int, data: String, callback: NECallback<Unit>)
给房间内的userUuid发送自定义消息,如房间内信令。 如果需要发送聊天消息请使用NERoomChatController