ChatPresenceManager class
The Manager that defines how to manage presence states.
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
addEventHandler(
String identifier, ChatPresenceEventHandler handler) → void - Adds the presence event handler. After calling this method, you can handle for new presence event when they arrive.
-
clearEventHandlers(
) → void - Clear all presence event handlers.
-
fetchPresenceStatus(
{required List< String> members}) → Future<List< ChatPresence> > - Gets the current presence state of users.
-
fetchSubscribedMembers(
{int pageNum = 1, int pageSize = 20}) → Future< List< String> > - Uses pagination to get a list of users whose presence states you have subscribed to.
-
getEventHandler(
String identifier) → ChatPresenceEventHandler? - Get the presence event handler.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publishPresence(
String description) → Future< void> - Publishes a custom presence state.
-
removeEventHandler(
String identifier) → void - Remove the presence event handler.
-
subscribe(
{required List< String> members, required int expiry}) → Future<List< ChatPresence> > - 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> - Unsubscribes from a user's presence states.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited