#import <IEMChatroomManager.h>
Add delegate
- Parameters
-
aDelegate | Delegate |
aQueue | The queue of call delegate method |
- (void) asyncFetchChatroomInfo: |
|
(NSString *) |
aChatroomId |
includeMembersList: |
|
(BOOL) |
aIncludeMembersList |
success: |
|
(void(^)(EMChatroom *aChatroom)) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Fetch chatroom's specification
- Parameters
-
aChatroomId | Chatroom id |
aIncludeMembersList | Whether get member list |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncGetAllChatroomsFromServer: |
|
(void(^)(NSArray *aList)) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Get all the chatrooms from server
- Parameters
-
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncJoinChatroom: |
|
(NSString *) |
aChatroomId |
success: |
|
(void(^)(EMChatroom *aRoom)) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Join a chatroom
- Parameters
-
aChatroomId | Chatroom id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- (void) asyncLeaveChatroom: |
|
(NSString *) |
aChatroomId |
success: |
|
(void(^)(EMChatroom *aRoom)) |
aSuccessBlock |
failure: |
|
(void(^)(EMError *aError)) |
aFailureBlock |
|
|
| |
|
required |
Leave a chatroom
- Parameters
-
aChatroomId | Chatroom id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
- Returns
- Leaved chatroom
- (EMChatroom *) fetchChatroomInfo: |
|
(NSString *) |
aChatroomId |
includeMembersList: |
|
(BOOL) |
aIncludeMembersList |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Fetch chatroom's specification
Synchronization method, will block the current thread
- Parameters
-
aChatroomId | Chatroom id |
aIncludeMembersList | Whether get member list |
pError | Error |
- Returns
- Chatroom instance
- (NSArray *) getAllChatroomsFromServerWithError: |
|
(EMError **) |
pError |
|
|
required |
Get all the chatrooms from server
Synchronization method will block the current thread
- Parameters
-
- Returns
- Chat room list<EMChatroom>
Join a chatroom
Synchronization method will block the current thread
- Parameters
-
aChatroomId | Chatroom id |
pError | Error |
- Returns
- Joined chatroom
Leave a chatroom
Synchronization method will block the current thread
- Parameters
-
aChatroomId | Chatroom id |
pError | Error |
- Returns
- Leaved chatroom
Remove delegate
- Parameters
-
The documentation for this protocol was generated from the following file: