EMContactManagerListener class abstract

The contact updates listener.

Occurs when the contact changes, including requests to add friends, notifications to delete friends, requests to accept friends, and requests to reject friends.

Register the listener:

  EMClient.getInstance.contactManager.addContactManagerListener(contactListener);

Unregister the listener:

  EMClient.getInstance.contactManager.removeContactManagerListener(contactListener);
Annotations
  • @Deprecated("Use EMContactEventHandler to instead")

Constructors

EMContactManagerListener()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onContactAdded(String userName) → void
Occurs when user is added as a contact by another user.
onContactDeleted(String userName) → void
Occurs when a user is removed from the contact list by another user.
onContactInvited(String userName, String? reason) → void
Occurs when a user receives a friend request.
onFriendRequestAccepted(String userName) → void
Occurs when a friend request is approved.
onFriendRequestDeclined(String userName) → void
Occurs when a friend request is declined.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited