ConversationService class
- Annotations
Constructors
- ConversationService()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onConversationChanged
→ Stream<
List< NIMConversation> > -
会话更新
no setter
-
onConversationCreated
→ Stream<
NIMConversation> -
会话创建
no setter
-
onConversationDeleted
→ Stream<
List< String> > -
会话删除
no setter
-
onConversationReadTimeUpdated
→ Stream<
ReadTimeUpdateResult> -
账号多端登录会话已读时间戳标记通知 账号A登录设备D1, D2, D1会话已读时间戳标记,同步到D2成
no setter
-
onSyncFailed
→ Stream<
void> -
会话同步失败
no setter
-
onSyncFinished
→ Stream<
void> -
会话同步完成
no setter
-
onSyncStarted
→ Stream<
void> -
会话同步开始
no setter
-
onTotalUnreadCountChanged
→ Stream<
int> -
会话未读消息计数更新
no setter
-
onUnreadCountChangedByFilter
→ Stream<
UnreadChangeFilterResult> -
未读数改变回调
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearTotalUnreadCount(
) → Future< NIMResult< void> > - 清空会话未读数
-
clearUnreadCountByIds(
List< String> conversationIds) → Future<NIMResult< List< >NIMConversationOperationResult> > -
根据会话id清空会话未读数
conversationIds
– 会话id列表 -
clearUnreadCountByTypes(
List< NIMConversationType> conversationTypes) → Future<NIMResult< void> > -
根据会话id清空会话未读数
groupId – 会话分组Id
根据会话类型清空相应会话的未读数
conversationTypes
– 会话类型 -
createConversation(
String conversationId) → Future< NIMResult< NIMConversation> > -
创建会话
conversationId
– 会话id -
deleteConversation(
String conversationId, bool clearMessage) → Future< NIMResult< void> > -
删除会话
conversationId
– 会话idclearMessage
– 是否清除消息 -
deleteConversationListByIds(
List< String> conversationIds, bool clearMessage) → Future<NIMResult< List< >NIMConversationOperationResult> > -
删除会话
conversationId
– 会话idclearMessage
– 是否清除消息 -
getConversation(
String conversationId) → Future< NIMResult< NIMConversation> > -
获取会话列表,通过会话id
conversationId
– 会话id -
getConversationList(
int offset, int limit) → Future< NIMResult< NIMConversationResult> > -
获取会话列表
offset
– 分页偏移,首次传0,后续拉取采用上一次返回的offset limit – 分页拉取数量,不建议超过100; -
getConversationListByIds(
List< String> conversationIds) → Future<NIMResult< List< >NIMConversation> > -
获取会话列表,通过会话id
conversationIds
– 会话id列表 -
getConversationListByOption(
int offset, int limit, NIMConversationOption option) → Future< NIMResult< NIMConversationResult> > -
根据查询参数获取会话列表
offset
– 分页偏移,首次传0,后续拉取采用上一次返回的offsetlimit
– 分页拉取数量,不建议超过100;option
– 查询选项 -
getConversationReadTime(
String conversationId) → Future< NIMResult< int> > -
获取会话已读时间戳 当前只支持P2P,高级群, 超大群
conversationId
– 会话id -
getTotalUnreadCount(
) → Future< NIMResult< int> > - 获取会话总未读数
-
getUnreadCountByFilter(
NIMConversationFilter filter) → Future< NIMResult< int> > -
根据过滤条件获取相应的未读数
filter
– 查询选项 -
getUnreadCountByIds(
List< String> conversationIds) → Future<NIMResult< int> > -
根据会话id获取会话未读数
conversationIds
– 会话id列表 -
markConversationRead(
String conversationId) → Future< NIMResult< int> > -
更新会话已读时间戳
conversationId
– 会话id -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stickTopConversation(
String conversationId, bool stickTop) → Future< NIMResult< void> > -
置顶会话
conversationId
– 会话idstickTop
– 是否置顶 -
subscribeUnreadCountByFilter(
NIMConversationFilter filter) → Future< NIMResult< NIMError> > -
订阅指定过滤条件的会话未读数
filter
– 过滤条件 -
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribeUnreadCountByFilter(
NIMConversationFilter filter) → Future< NIMResult< NIMError> > -
取消订阅指定过滤条件的会话未读数
filter
– 过滤条件 -
updateConversation(
String conversationId, NIMConversationUpdate updateInfo) → Future< NIMResult< void> > -
更新会话
conversationId
– 会话idupdateInfo
– 更新信息 -
updateConversationLocalExtension(
String conversationId, String localExtension) → Future< NIMResult< void> > -
更新会话本地扩展字段
conversationId
– 会话idlocalExtension
– 本地扩展字段更新信息
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited