ChatUserInfoManager class

用户属性类,用于获取和更新用户属性。

Constructors

ChatUserInfoManager()

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

addEventHandler(String identifier, ChatUserInfoEventHandler handler) → void
添加用户属性事件处理程序。调用此方法后,您可以在新的用户属性事件到达时处理它们。
clearEventHandlers() → void
清除所有用户属性事件处理程序。
clearUserInfoCache() → void
清理内存中的用户属性。
fetchOwnInfo({int expireTime = 0}) Future<ChatUserInfo?>
获取当前用户的属性信息。
fetchSubscribedUsers() Future<List<ChatUserInfo>>
获取当前用户已订阅用户属性的用户列表。
fetchUserInfoById(List<String> userIds, {int expireTime = 0}) Future<Map<String, ChatUserInfo>>
根据用户 ID,获取指定用户的用户属性。
getEventHandler(String identifier) ChatUserInfoEventHandler?
获取用户属性事件处理程序。
getLocalUserInfoByIds(List<String> userIds) Future<Map<String, ChatUserInfo>>
从本地数据库获取指定用户的用户属性。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventHandler(String identifier) → void
删除用户属性事件处理程序。
subscribeUsersInfo(List<String> userIds) Future<void>
订阅指定用户的用户属性。
toString() String
A string representation of this object.
inherited
unsubscribeUsersInfo(List<String> userIds) Future<void>
取消订阅指定用户的用户属性。
updateUserInfo({String? nickname, String? avatarUrl, String? mail, String? phone, int? gender, String? sign, String? birth, String? ext}) Future<ChatUserInfo>
修改当前用户的属性信息。

Operators

operator ==(Object other) bool
The equality operator.
inherited