HyphenateSDK  3.1.4
Instance Methods | List of all members
<IEMChatroomManager> Protocol Reference

#import <IEMChatroomManager.h>

Inheritance diagram for <IEMChatroomManager>:

Instance Methods

(void) - addDelegate:delegateQueue:
 
(void) - removeDelegate:
 
(NSArray *) - getAllChatroomsFromServerWithError:
 
(EMChatroom *) - joinChatroom:error:
 
(EMChatroom *) - leaveChatroom:error:
 
(EMChatroom *) - fetchChatroomInfo:includeMembersList:error:
 
(void) - asyncGetAllChatroomsFromServer:failure:
 
(void) - asyncJoinChatroom:success:failure:
 
(void) - asyncLeaveChatroom:success:failure:
 
(void) - asyncFetchChatroomInfo:includeMembersList:success:failure:
 

Detailed Description

Chatroom operations

Method Documentation

- (void) addDelegate: (id< EMChatroomManagerDelegate >)  aDelegate
delegateQueue: (dispatch_queue_t)  aQueue 
required

Add delegate

Parameters
aDelegateDelegate
aQueueThe 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
aChatroomIdChatroom id
aIncludeMembersListWhether get member list
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncGetAllChatroomsFromServer: (void(^)(NSArray *aList))  aSuccessBlock
failure: (void(^)(EMError *aError))  aFailureBlock 
required

Get all the chatrooms from server

Parameters
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncJoinChatroom: (NSString *)  aChatroomId
success: (void(^)(EMChatroom *aRoom))  aSuccessBlock
failure: (void(^)(EMError *aError))  aFailureBlock 
required

Join a chatroom

Parameters
aChatroomIdChatroom id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncLeaveChatroom: (NSString *)  aChatroomId
success: (void(^)(EMChatroom *aRoom))  aSuccessBlock
failure: (void(^)(EMError *aError))  aFailureBlock 
required

Leave a chatroom

Parameters
aChatroomIdChatroom id
aSuccessBlockThe callback block of success
aFailureBlockThe 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
aChatroomIdChatroom id
aIncludeMembersListWhether get member list
pErrorError
Returns
Chatroom instance
- (NSArray *) getAllChatroomsFromServerWithError: (EMError **)  pError
required

Get all the chatrooms from server

Synchronization method will block the current thread

Parameters
pErrorError
Returns
Chat room list<EMChatroom>
- (EMChatroom *) joinChatroom: (NSString *)  aChatroomId
error: (EMError **)  pError 
required

Join a chatroom

Synchronization method will block the current thread

Parameters
aChatroomIdChatroom id
pErrorError
Returns
Joined chatroom
- (EMChatroom *) leaveChatroom: (NSString *)  aChatroomId
error: (EMError **)  pError 
required

Leave a chatroom

Synchronization method will block the current thread

Parameters
aChatroomIdChatroom id
pErrorError
Returns
Leaved chatroom
- (void) removeDelegate: (id< EMChatroomManagerDelegate >)  aDelegate
required

Remove delegate

Parameters
aDelegateDelegate

The documentation for this protocol was generated from the following file: