PresenceManagerDefault class
- Inheritance
-
- Object
- PresenceManager
- PresenceManagerDefault
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, EMPresenceEventHandler handler) → void -
~english
Adds the presence event handler. After calling this method, you can handle for new presence event when they arrive.
inherited
-
clearEventHandlers(
) → void -
~english
Clear all presence event handlers.
~end
inherited
-
fetchPresenceStatus(
{required List< String> members}) → Future<List< EMPresence> > -
~english
Gets the current presence state of users.
inherited
-
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.
inherited
-
getEventHandler(
String identifier) → EMPresenceEventHandler? -
~english
Get the presence event handler.
inherited
-
initHandler(
) → void -
inherited
-
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.
inherited
-
removeEventHandler(
String identifier) → void -
~english
Remove the presence event handler.
inherited
-
subscribe(
{required List< String> members, required int expiry}) → Future<List< EMPresence> > -
~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.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
{required List< String> members}) → Future<void> -
~english
Unsubscribes from a user's presence states.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited