ChatContactManagerListener class Null safety
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:
ChatClient.getInstance.contactManager.addContactManagerListener(contactListener);
Unregister the listener:
ChatClient.getInstance.contactManager.removeContactManagerListener(contactListener);
- Annotations
-
- @Deprecated("Use ContactEventHandler to instead")
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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