ContactRepo class
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
addApplicationUnreadCountNotifier
→ Stream<
int> -
no setter
Static Methods
-
acceptAddApplication(
NIMFriendAddApplication application) → Future< NIMResult< void> > - 同意添加好友申请
-
addBlacklist(
String userId) → Future< NIMResult< void> > - 添加用户到黑名单
-
addFriend(
String userId, NIMFriendAddMode verifyType) → Future< NIMResult< void> > - 添加好友
-
clearAllAddApplication(
) → Future< NIMResult< void> > - 清空添加好友申请通知
-
deleteFriend(
String userId, {bool includeAlias = true}) → Future< NIMResult< void> > - 删除好友
-
getAddApplicationList(
int limit, {int offset = 0}) → Future< NIMResult< NIMFriendAddApplicationResult> > - 查询添加好友申请列表
-
getAddApplicationUnreadCount(
) → Future< NIMResult< int> > - 获取好友申请未读数量,统计所有状态为未处理,且未读的数量
-
getBlackList(
) → Future< List< NIMUserInfo> > - 获取黑名单列表
-
getContactList(
{bool userCache = false}) → Future< List< ContactInfo> > - 获取通讯录列表数据,我的好友信息(包含黑名单)
-
getFriend(
String accId) → Future< ContactInfo?> - 根据账号ID,查询账号ID对应的好友信息,包括昵称、头像等数据
-
getFriendByIds(
List< String> accountIds) → Future<NIMResult< List< >NIMFriend> > - 根据AccountId获取好友信息
-
getFriendList(
) → Future< NIMResult< List< >NIMFriend> > - 获取好友列表
-
getUserListFromCloud(
List< String> accountIds) → Future<NIMResult< List< >NIMUserInfo> > - 根据用户账号列表获取用户资料
-
isBlackList(
String userId) → bool - 是否在黑名单中
-
isFriend(
String userId) → Future< bool> - 是否为好友关系
-
registerBlackListAddedObserver(
) → Stream< NIMUserInfo> - 注册黑名单添加的通知
-
registerBlackListRemovedObserver(
) → Stream< String> - 注册黑名单移除的通知
-
registerFriendAddApplicationObserver(
) → Stream< NIMFriendAddApplication> - 注册好友添加申请监听器
-
registerFriendAddedObserver(
) → Stream< NIMFriend> - 注册好友增加的监听器
-
registerFriendAddRejectedObserver(
) → Stream< NIMFriendAddApplication> - 注册好友添加申请被拒绝监听器
-
registerFriendDeleteObserver(
) → Stream< NIMFriendDeletion> - 注册好友删除的监听器
-
registerFriendInfoChangedObserver(
) → Stream< NIMFriend> - 注册好友更新的监听器
-
registerUserProfileChangedObserver(
) → Stream< List< NIMUserInfo> > - 注册用户资料变更的监听器
-
rejectAddApplication(
NIMFriendAddApplication application, {String? postscript}) → Future< NIMResult< void> > - 拒绝添加好友申请
-
removeBlacklist(
String userId) → Future< NIMResult< void> > - 将该用户从黑名单中移除
-
setAddApplicationRead(
) → Future< NIMResult< void> > - 设置好友申请已读,调用该方法,历史数据未读数据均标记为已读
-
setFriendInfo(
String userId, NIMFriendSetParams params) → Future< NIMResult< void> > - 更新好友信息
-
updateAlias(
String userId, String alias) → Future< NIMResult< void> > - 更新好友昵称
-
updateSelfUserProfile(
NIMUserUpdateParam param) → Future< NIMResult< void> > - 更新自己的用户资料