ContactRepo class
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
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
acceptAddFriend(String userId, bool agree)
→ Future<NIMResult<void>>
-
同意(或者拒绝)添加好友申请
-
acceptTeamInvite(String teamId, String inviter)
→ Future<NIMResult<void>>
-
接受入群邀请
-
addBlacklist(String userId)
→ Future<NIMResult<void>>
-
添加用户到黑名单
-
addFriend(String userId, NIMVerifyType verifyType)
→ Future<NIMResult<void>>
-
添加好友
-
agreeTeamApply(String teamId, String account)
→ Future<NIMResult<void>>
-
同意入群申请
-
clearNotification()
→ Future<NIMResult<void>>
-
清空系统通知
-
clearNotificationUnreadCount()
→ Future<NIMResult<void>>
-
清除系统通知未读数量
-
deleteFriend(String userId)
→ Future<NIMResult<void>>
-
删除好友
-
getBlackList()
→ Future<List<NIMUser>>
-
获取黑名单列表
-
getContactList()
→ Future<List<ContactInfo>>
-
获取通讯录列表数据,我的好友信息(包含黑名单)
-
getFriend(String accId)
→ Future<ContactInfo?>
-
根据账号ID,查询账号ID对应的好友信息,包括昵称、头像等数据
-
getNotificationList(int limit, {int offset = 0, SystemMessage? systemMessage})
→ Future<NIMResult<List<SystemMessage>>>
-
查询系统通知
-
getNotificationUnreadCount()
→ Future<NIMResult<int>>
-
查询系统通知的未读数
-
getTeamList()
→ Future<NIMResult<List<NIMTeam>>>
-
获取我的群组列表
-
isBlackList(String userId)
→ Future<NIMResult<bool>>
-
是否在黑名单中
-
isFriend(String userId)
→ Future<bool>
-
是否为好友关系
-
registerBlackListChanged()
→ Stream<void>
-
注册黑名单变化的通知
-
registerFriendDeleteObserver()
→ Stream<List<String>>
-
注册好友删除的监听器
-
registerFriendObserver()
→ Stream<List<NIMFriend>>
-
注册好友增加或者更新的监听器
-
registerNotificationObserver()
→ Stream<SystemMessage>
-
注册系统通知监听器
-
registerNotificationUnreadCountObserver()
→ Stream<int>
-
注册系统消息未读数字变化监听器
-
rejectTeamApply(String teamId, String account, String reason)
→ Future<NIMResult<void>>
-
拒绝入群申请
-
rejectTeamInvite(String teamId, String account, String reason)
→ Future<NIMResult<void>>
-
拒绝入群邀请
-
removeBlacklist(String userId)
→ Future<NIMResult<void>>
-
将该用户从黑名单中移除
-
setVerifyStatus(int messageId, SystemMessageStatus status)
→ Future<NIMResult<void>>
-
设置通知消息状态
-
updateAlias(String userId, String alias)
→ Future<NIMResult<void>>
-
更新好友昵称