Easemob Windows SDK
|
Public Member Functions | |
virtual | ~EMChatManagerInterface () |
Destructor. More... | |
virtual void | sendMessage (const EMMessagePtr)=0 |
Send a message. More... | |
virtual void | sendReadAckForMessage (const EMMessagePtr)=0 |
Send read ask for a message. More... | |
virtual void | resendMessage (const EMMessagePtr)=0 |
Resend a message. More... | |
virtual void | downloadMessageThumbnail (const EMMessagePtr)=0 |
Download thumbnail for image or video message. More... | |
virtual void | downloadMessageAttachments (const EMMessagePtr)=0 |
Download attachment of a message. More... | |
virtual void | removeConversation (const std::string &conversationId, bool isRemoveMessages=true)=0 |
Remove a conversation from DB and the memory. More... | |
virtual EMConversationPtr | conversationWithType (const std::string &conversationId, EMConversation::EMConversationType type, bool createIfNotExist=true)=0 |
Get a conversation. More... | |
virtual EMConversationList | getConversations ()=0 |
Get all conversations from memory. More... | |
virtual EMConversationList | loadAllConversationsFromDB ()=0 |
Get all conversations from DB. More... | |
virtual void | addListener (EMChatManagerListener *)=0 |
Add a listener to chat manager. More... | |
virtual void | removeListener (EMChatManagerListener *)=0 |
Remove a listener. More... | |
virtual void | clearListeners ()=0 |
Remove all the listeners. More... | |
virtual void | setEncryptProvider (EMEncryptProviderInterface *provider)=0 |
Application can customize encrypt method through EMEncryptProvider. More... | |
virtual EMEncryptProviderInterface * | getEncryptProvider (bool createIfNotExist=false)=0 |
Get encrypt method being used. More... | |
virtual bool | insertMessages (const EMMessageList &list)=0 |
Insert messages. More... | |
virtual EMMessagePtr | getMessage (const std::string &messageId)=0 |
Get message by message Id. More... | |
virtual void | uploadLog ()=0 |
Upload log to server. | |
|
inlinevirtual |
Destructor.
NA |
|
pure virtual |
Add a listener to chat manager.
NA |
|
pure virtual |
Remove all the listeners.
NA |
|
pure virtual |
Get a conversation.
Note: All conversations must have loaded from DB.
The | conversation id. |
The | conversation type. |
The | flag of whether created a conversation if it isn't exist. |
|
pure virtual |
Download attachment of a message.
Note: User should call this method to download file, voice, image, video. And too, SDK will callback the user by EMChatManagerListener if user doesn't provide a callback or callback return false.
The | message to download attachment. |
|
pure virtual |
Download thumbnail for image or video message.
Note: Image or video message thumbnail is downloaded automatically, so user should NOT call this method except automatic download failed. And too, SDK will callback the user by EMChatManagerListener if user doesn't provide a callback in the message or callback return false.
The | message to download thumbnail. |
|
pure virtual |
Get all conversations from memory.
Note: All conversations must have loaded from DB.
NA |
|
pure virtual |
Get encrypt method being used.
createIfNotExist | If true, SDK will create a default encryptProvider, when there is no encryptProvider exists. |
|
pure virtual |
Get message by message Id.
messageId |
|
pure virtual |
Insert messages.
The | messages to insert. |
|
pure virtual |
Get all conversations from DB.
NA |
|
pure virtual |
Remove a conversation from DB and the memory.
Note: Before remove a conversation, all conversations must have loaded from DB.
The | conversation id. |
The | flag of whether remove the messages belongs to this conversation. |
|
pure virtual |
Remove a listener.
NA |
|
pure virtual |
Resend a message.
Note: Will callback user by EMChatManagerListener if user doesn't provide a callback in the message or callback return false.
The | message to resend. |
|
pure virtual |
Send a message.
Note: Will callback user by EMChatManagerListener if user doesn't provide a callback in the message or callback return false.
The | message to send. |
|
pure virtual |
Send read ask for a message.
The | message to send read ack. |
|
pure virtual |
Application can customize encrypt method through EMEncryptProvider.
Note: If EMConfigManager::KEY_USE_ENCRYPTION is true, but don't provider encryptprovider, SDK will use default encrypt method.
EMEncryptProvider | Customized encrypt method provider. |