ContactManagerDefault class

Inheritance

Constructors

ContactManagerDefault.new()

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

acceptInvitation(String userId) Future<void>
~english Accepts a friend invitation。
inherited
addContact(String userId, {String? reason}) Future<void>
~english Adds a new contact.
inherited
addEventHandler(String identifier, EMContactEventHandler handler) → void
~english Adds the contact event handler. After calling this method, you can handle for new contact event when they arrive.
inherited
addUserToBlockList(String userId) Future<void>
~english Adds a user to the block list. You can send messages to the users on the block list, but cannot receive messages from them.
inherited
clearEventHandlers() → void
~english Clear all contact event handlers. ~end
inherited
declineInvitation(String userId) Future<void>
~english Declines a friend invitation.
inherited
deleteContact(String userId, {bool keepConversation = false}) Future<void>
~english Deletes a contact and all the related conversations.
inherited
fetchAllContactIds() Future<List<String>>
~english Gets all the contact ids from the server.
inherited
fetchAllContacts() Future<List<EMContact>>
~english Gets all contacts from the server.
inherited
fetchBlockIds() Future<List<String>>
~english Gets the block ids from the server.
inherited
fetchContacts({String? cursor, int pageSize = 20}) Future<EMCursorResult<EMContact>>
~english Gets the contact list from the server by page.
inherited
getAllContactIds() Future<List<String>>
~english Gets the contact ids from the local database.
inherited
getAllContacts() Future<List<EMContact>>
~english Gets all contacts from the local database.
inherited
getAllContactsFromDB() Future<List<String>>
~english Gets the contact ids from the local database.
inherited
getAllContactsFromServer() Future<List<String>>
~english Gets all the contact ids from the server.
inherited
getBlockIds() Future<List<String>>
~english Gets the block ids from the local database.
inherited
getBlockListFromDB() Future<List<String>>
~english Gets the block list from the local database.
inherited
getBlockListFromServer() Future<List<String>>
~english Gets the block list from the server.
inherited
getContact({required String userId}) Future<EMContact?>
~english Gets contact by userId.
inherited
getEventHandler(String identifier) EMContactEventHandler?
~english Get the contact event handler.
inherited
getSelfIdsOnOtherPlatform() Future<List<String>>
~english Gets the unique IDs of the current user on the other devices. The ID is in the format of username + "/" + resource.
inherited
initHandler() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventHandler(String identifier) → void
~english Remove the contact event handler.
inherited
removeUserFromBlockList(String userId) Future<void>
~english Removes the contact from the block ids.
inherited
setContactRemark({required String userId, required String remark}) Future<void>
~english Set the contact's remark.
inherited
toString() String
A string representation of this object.
inherited

Operators

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