§ addListener()
Add a listener to chatroom manager.
- Parameters
-
A | chatroom manager listener. |
- Returns
- NA
§ chatroomWithId()
virtual EMChatroomPtr easemob::EMChatroomManagerInterface::chatroomWithId |
( |
const std::string & |
chatroomId | ) |
|
|
pure virtual |
Get a chatroom with chatroomId, create the chatroom if not exist.
- Parameters
-
- Returns
- A chatroom with the chatroomId.
§ clearListeners()
virtual void easemob::EMChatroomManagerInterface::clearListeners |
( |
| ) |
|
|
pure virtual |
Remove all the listeners.
- Parameters
-
- Returns
- NA
§ fetchAllChatrooms()
virtual EMChatroomList easemob::EMChatroomManagerInterface::fetchAllChatrooms |
( |
EMError & |
error | ) |
|
|
pure virtual |
Fetch app's chatrooms.
- Parameters
-
- Returns
- Chatroom list.
§ fetchChatroomSpecification()
virtual EMChatroomPtr easemob::EMChatroomManagerInterface::fetchChatroomSpecification |
( |
const std::string & |
chatroomId, |
|
|
EMError & |
error, |
|
|
bool |
fetchMembers = false |
|
) |
| |
|
pure virtual |
Get chatroom's specification.
- Parameters
-
Chatroom's | ID. |
EMError | used for output. |
Wether | fetch chatroom's members. |
- Returns
- The chatroom that update it's specification.
§ fetchChatroomsWithCursor()
virtual EMCursorResult easemob::EMChatroomManagerInterface::fetchChatroomsWithCursor |
( |
const std::string & |
cursor, |
|
|
int |
pageSize, |
|
|
EMError & |
error |
|
) |
| |
|
pure virtual |
fetch chatroom with cursor Note: User can input empty string as cursor at the first time.
- Parameters
-
Page's | cursor. |
Page's | size. |
EMError | used for output. |
- Returns
- Wrapper of next page's cursor and current page result.
§ joinChatroom()
virtual EMChatroomPtr easemob::EMChatroomManagerInterface::joinChatroom |
( |
const std::string & |
chatroomId, |
|
|
EMError & |
error |
|
) |
| |
|
pure virtual |
Join a chatroom.
- Parameters
-
Chatroom's | ID. |
EMError | used for output. |
- Returns
- The joined chatroom.
§ joinedChatroomById()
virtual EMChatroomPtr easemob::EMChatroomManagerInterface::joinedChatroomById |
( |
const std::string & |
chatroomId | ) |
|
|
pure virtual |
Get the chatroom by chatroom id.
- Parameters
-
- Returns
- the chat room
§ leaveChatroom()
virtual EMChatroomPtr easemob::EMChatroomManagerInterface::leaveChatroom |
( |
const std::string & |
chatroomId, |
|
|
EMError & |
error |
|
) |
| |
|
pure virtual |
Leave a chatroom.
- Parameters
-
Chatroom's | ID. |
EMError | used for output. |
- Returns
- The leaved chatroom.
§ removeListener()
Remove a listener.
- Parameters
-
A | chatroom manager listener. |
- Returns
- NA
The documentation for this class was generated from the following file: