Protected
Optional
_eventProtected
Static
TAGAccepts a friend invitation。
The user who sends the friend invitation.
A description of the exception. See ChatError.
Adds a new contact.
The user ID of the contact to add.
The reason for adding the contact. This parameter is optional and can be null
or "".
A description of the exception. See ChatError.
Adds a contact listener.
The listener to add.
Adds a contact to the block list.
You can send messages to the users on the block list, but cannot receive messages from them.
The user ID of the contact to be added to the block list.
A description of the exception. See ChatError.
Declines a friend invitation.
The user who sends the friend invitation.
A description of the exception. See ChatError.
Deletes a contact and all the related conversations.
The user ID of the contact to delete.
Whether to retain conversations of the contact to delete.
true
: Yes.false
: No.A description of the exception. See ChatError.
Gets all contacts from the server.
The list of contacts.
A description of the exception. See ChatError.
Gets the contacts from the server.
Optional
cursor?: stringOptional
pageThe list of contacts.
params -
A description of the exception. See ChatError.
Gets all contacts from the local database.
The list of contacts.
A description of the exception. See ChatError.
Gets the contact list from the local database.
The contact list.
A description of the exception. See ChatError.
Gets the contact list from the server.
The list of contacts.
A description of the exception. See ChatError.
Gets the block list from the local database.
The block list obtained from the local database.
A description of the exception. See ChatError.
Gets the block list from the server.
The block list obtained from the server.
A description of the exception. See ChatError.
Gets the contact by user ID from local database.
The user ID of the contact to get.
The contact.
A description of the exception. See ChatError.
Gets the unique IDs of the current user on the other devices. The ID is in the format of {user_ID} + "/" + {resource_ID}
.
The list of unique IDs of users on the other devices if the method succeeds.
A description of the exception. See ChatError.
Removes the contact listener.
The listener to remove.
Removes the contact from the block list.
The user ID of the contact to be removed from the block list.
A description of the exception. See ChatError.
Set the contact's remark.
The contact to set.
A description of the exception. See ChatError.
Protected
Static
_callProtected
Static
checkProtected
Static
handleOptional
callback: ChatGroupFileStatusCallbackProtected
Static
handleOptional
callback: ChatMessageStatusCallback
The contact manager class, which manages chat contacts such as adding, retrieving, modifying, and deleting contacts.