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