NEMessageChannelService class abstract
消息通道服务
- Annotations
-
- @HawkEntryPoint()
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addMessageChannelCallback(
NEMessageChannelCallback callback) → void -
添加IM自定义透传消息监听
callback
消息监听器 -
addReceiveSessionMessageCallback(
NERoomMessageSessionCallback callback) → void -
添加消息监听观察者
callback
消息监听观察者 -
clearUnreadCount(
String sessionId, {NERoomSessionTypeEnum sessionType = NERoomSessionTypeEnum.P2P}) → Future< VoidResult> - SDK 会触发 MsgServiceObserve.observeRecentContact(Observer, boolean) 回调通知。 sessionId 会话id sessionType 会话类型 消息列表
-
deleteAllSessionMessage(
String sessionId, {NERoomSessionTypeEnum sessionType = NERoomSessionTypeEnum.P2P}) → Future< VoidResult> -
getSessionMessagesHistory(
NERoomGetMessagesHistoryParam param) → Future< NEResult< List< >NECustomSessionMessage> > -
使用前提:
已在云信控制台开启动态查询历史消息功能。
param
查询参数 消息列表 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryUnreadMessageList(
String sessionId, {NERoomSessionTypeEnum sessionType = NERoomSessionTypeEnum.P2P}) → Future< NEResult< List< >NECustomSessionMessage> > - 获取指定会话的未读消息列表 sessionId 会话id sessionType 会话类型 消息列表
-
removeMessageChannelCallback(
NEMessageChannelCallback callback) → void -
移除IM自定义透传消息监听
callback
消息监听器 -
removeReceiveSessionMessageCallback(
NERoomMessageSessionCallback callback) → void -
解除消息监听观察者
callback
消息监听观察者 -
sendCustomMessage(
String? roomUuid, String userUuid, int commandId, String data, {NEInjectedAuthorization? injectedAuthorization}) → Future< VoidResult> -
给房间内的
userUuid
发送透传消息,如房间内信令。 如果需要发送聊天消息请使用NERoomChatController。roomUuid
房间IDuserUuid
用户IDcommandId
消息类型,可用区间为 10000-19999data
自定义的消息内容crossAppAuthorization
跨房间发消息所需的鉴权信息 -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited