ChatUserInfoEventHandler class
用户属性事件监听。
当前用户或被订阅用户的用户属性更新时触发。
添加监听:
ChatClient.getInstance.userInfoManager.addEventHandler(UNIQUE_HANDLER_ID, ChatUserInfoEventHandler());
移除监听:
ChatClient.getInstance.userInfoManager.removeEventHandler(UNIQUE_HANDLER_ID);
Constructors
-
ChatUserInfoEventHandler({void onSelfUserInfoUpdate(ChatUserInfo userInfo)?, void onUserInfoUpdate(List<
ChatUserInfo> userInfos)?}) - 用户属性事件监听。
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onSelfUserInfoUpdate → void Function(ChatUserInfo userInfo)?
-
当前用户的用户属性更新回调。
final
-
onUserInfoUpdate
→ void Function(List<
ChatUserInfo> userInfos)? -
被订阅用户的用户属性更新回调。
final
- 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