ChatPresenceManager class
~english The Manager that defines how to manage presence states. ~end
~chinese 用户在线状态管理类。 ~end
Constructors
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, ChatPresenceEventHandler handler) → void 
- ~english Adds the presence event handler. After calling this method, you can handle for new presence event when they arrive.
- 
  clearEventHandlers() → void 
- ~english Clear all presence event handlers. ~end
- 
  fetchPresenceStatus({required List< String> members}) → Future<List< ChatPresence> >
- ~english Gets the current presence state of users.
- 
  fetchSubscribedMembers({int pageNum = 1, int pageSize = 20}) → Future< List< String> >
- ~english Uses pagination to get a list of users whose presence states you have subscribed to.
- 
  getEventHandler(String identifier) → ChatPresenceEventHandler? 
- ~english Get the presence event handler.
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  publishPresence(String description) → Future< void> 
- ~english Publishes a custom presence state.
- 
  removeEventHandler(String identifier) → void 
- ~english Remove the presence event handler.
- 
  subscribe({required List< String> members, required int expiry}) → Future<List< ChatPresence> >
- ~english Subscribes to a user's presence states. If the subscription succeeds, the subscriber will receive the callback when the user's presence state changes.
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  unsubscribe({required List< String> members}) → Future<void> 
- ~english Unsubscribes from a user's presence states.
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited