HyphenateChatSDK 4.2.3
|
#import <IEMChatroomManager.h>
Instance Methods | |
(void) | - addDelegate:delegateQueue: |
(void) | - removeDelegate: |
(EMPageResult< EMChatroom * > *_Nullable) | - getChatroomsFromServerWithPage:pageSize:error: |
(void) | - getChatroomsFromServerWithPage:pageSize:completion: |
(EMChatroom *) | - joinChatroom:error: |
(void) | - joinChatroom:completion: |
(void) | - joinChatroom:ext:leaveOtherRooms:completion: |
(void) | - leaveChatroom:error: |
(void) | - leaveChatroom:completion: |
(EMChatroom *_Nullable) | - getChatroomSpecificationFromServerWithId:error: |
(void) | - getChatroomSpecificationFromServerWithId:completion: |
(EMCursorResult< NSString * > *_Nullable) | - getChatroomMemberListFromServerWithId:cursor:pageSize:error: |
(void) | - getChatroomMemberListFromServerWithId:cursor:pageSize:completion: |
(NSString *_Nullable) | - getChatroomAnnouncementWithId:error: |
(void) | - getChatroomAnnouncementWithId:completion: |
A class that manages the chatrooms.
|
required |
Adds the SDK delegate.
aDelegate | The delegate that you want to add: ChatroomManagerDelegate. |
aQueue | (Optional) The queue of calling the delegate methods. To run the app on the main thread, set this parameter as nil. |
|
required |
Gets the announcement of a chatroom from the server.
This is an asynchronous method.
aChatroomId | The chatroom ID. |
aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Gets the announcement of a chatroom from the server.
This is a synchronous method and blocks the current thread.
aChatroomId | The chatroom ID. |
pError | The error information if the method fails: Error. |
|
required |
Gets the list of chatroom members from the server.
This is an asynchronous method.
aChatroomId | The chatroom ID. |
aCursor | The cursor. Set this parameter as nil when you call this method for the first time. |
aPageSize | The page size. |
aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Gets the list of chatroom members from the server.
This is a synchronous method and blocks the current thread.
aChatroomId | The chatroom ID. |
aCursor | The cursor. Set this parameter as nil when you call this method for the first time. |
aPageSize | The page size. |
pError | The error information if the method fails: Error. |
|
required |
Gets the specified number of chat rooms from the server.
This is an asynchronous method.
aPageNum | The page number. |
aPageSize | The page size. |
aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Gets the specified number of chat rooms from the server.
This is a synchronous method and blocks the current thread.
aPageNum | The page number. |
aPageSize | The page size. |
pError | The error information if the method fails: Error. |
|
required |
Fetches the chat room specifications.
This is an asynchronous method.
aChatroomId | The chatroom ID. |
aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Fetches the specific chatroom.
This is a synchronous method and blocks the current thread.
aChatroomId | The chatroom ID. |
pError | The error information if the method fails: Error. |
|
required |
Joins a chatroom.
This is an asynchronous method.
aChatroomId | The chatroom ID. |
aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Joins a chatroom.
This is a synchronous method and blocks the current thread.
aChatroomId | The chatroom ID. |
pError | The error information if the method fails: Error. |
|
required |
Joins the chat room.
This is an asynchronous method.
aChatroomId | The chat room ID. |
ext | The extension information. |
leaveOtherRooms | Whether to leave all the currently joined chat rooms when joining a chat room.
|
aCompletionBlock | The completion block, which contains the error message if the method fails. |
|
required |
Leaves a chatroom.
This is an asynchronous method.
aChatroomId | The chatroom ID. |
aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Leaves a chatroom.
This is a synchronous method and blocks the current thread.
aChatroomId | The chatroom ID. |
pError | The error information if the method fails: Error. |
|
required |
Removes the delegate.
aDelegate | The delegate that you want to remove. |