EMPresenceEventHandler class
订阅用户状态变更监听
添加监听:
EMClient.getInstance.presenceManager.addEventHandler(UNIQUE_HANDLER_ID, EMPresenceEventHandler());
移除监听:
EMClient.getInstance.presenceManager.removeEventHandler(UNIQUE_HANDLER_ID);
Constructors
-
EMPresenceEventHandler({dynamic onPresenceStatusChanged(List<
EMPresence> list)?}) - 订阅用户状态变更监听。
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
onPresenceStatusChanged
→ (dynamic Function(List<
EMPresence> list)?) -
收到被订阅用户的在线状态发生变化。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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