EMPresenceEventHandler class
~english The presence event handler.
Occurs when the following presence events happens: presence status changed.
Adds a presence event handler:
EMClient.getInstance.presenceManager.addEventHandler(UNIQUE_HANDLER_ID, EMPresenceEventHandler());
Removes a presence event handler:
EMClient.getInstance.presenceManager.removeEventHandler(UNIQUE_HANDLER_ID);
~end
~chinese 订阅用户状态变更监听
添加监听:
EMClient.getInstance.presenceManager.addEventHandler(UNIQUE_HANDLER_ID, EMPresenceEventHandler());
移除监听:
EMClient.getInstance.presenceManager.removeEventHandler(UNIQUE_HANDLER_ID);
~end
Constructors
-
EMPresenceEventHandler.new({dynamic onPresenceStatusChanged(List<
EMPresence> list)?}) - ~english The presence manager listener callback.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onPresenceStatusChanged
→ dynamic Function(List<
EMPresence> list)? -
~english
Occurs when the presence state of a subscribed user changes.
~end
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