|
AgoraChatSDK 1.3.1
|
#import <IAgoraChatroomManager.h>
A class that manages the chatrooms.
|
required |
Adds a chatroom admin.
Only the chatroom owner can call this method.
This is an asynchronous method.
| aAdmin | The new admin. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Adds a chatroom admin.
Only the chatroom owner can call this method.
This is a synchronous method and blocks the current thread.
| aAdmin | The new admin. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Adds delegate.
Deprecated, please use addDelegate:delegateQueue: instead.
| aDelegate | The delegate you want to add. |
|
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 |
Adds members to the allowlist.
Only the chatroom owner and admin can call this method.
This is an asynchronous method.
| aMembers | The members to be added to the allowlist. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Adds users to the allowlist.
Only the chatroom owner and admin can call this method.
This is a synchronous method and blocks the current thread.
| aMembers | The members to be added to the allowlist. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Fetches chatroom's specification.
Deprecated, please use getChatroomSpecificationFromServerByID:includeMembersList:completion: instead.
| aChatroomId | The chatroom ID. |
| aIncludeMembersList | Whether to get member list. |
| aSuccessBlock | The callback block of success. |
| aFailureBlock | The callback block of failure, which contains the error message if the method fails. |
|
required |
Gets all the chatrooms from the server.
Deprecated, please use getAllChatroomsFromServerWithCompletion instead.
| aSuccessBlock | The callback block of success. |
| aFailureBlock | The callback block of failure, which contains the error message if the method fails. |
|
required |
Joins a chatroom.
Deprecated, please use joinChatroom:completion: instead.
| aChatroomId | The chatroom ID. |
| aSuccessBlock | The callback block of success. |
| aFailureBlock | The callback block of failure, which contains the error message if the method fails. |
|
required |
Leaves a chatroom.
Deprecated, please use leaveChatroom:completion: instead.
| aChatroomId | The chatroom ID. |
| aSuccessBlock | The callback block of success. |
| aFailureBlock | The callback block of failure, which contains the error message if the method fails. |
|
required |
Adds users to the chatroom's blocklist.
Only the chatroom owner can call this method.
This is an asynchronous method.
| aMembers | The users to be added to the chatroom. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Adds users to the chatroom's blocklist.
Only the chatroom owner can call this method.
This is a synchronous method and blocks the current thread.
| aMembers | The users to be added to the blocklist. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Creates a chatroom.
This is an asynchronous method.
| aSubject | The subject of the chatroom. |
| aDescription | The description of the chatroom. |
| aInvitees | The members of the chatroom. Do not include the creator. |
| aMessage | The invitation message. |
| aMaxMembersCount | The maximum number of members in the chatroom. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Creates a chatroom.
This is a synchronous method and blocks the current thread.
| aSubject | The subject of the chatroom. |
| aDescription | The description of the chatroom. |
| aInvitees | The members of the chatroom. Do not include the creator. |
| aMessage | The invitation message. |
| aMaxMembersCount | The maximum number of members in the chatroom. |
| pError | The error information if the method fails: Error. |
|
required |
Dismisses a chatroom.
Only the owner of a chatroom has the privilege to dismiss it.
This is a synchronous method and blocks the current thread.
| aChatroomId | The chatroom ID. |
nil if the method call succeeds.
|
required |
Dismisses a chatroom.
Only the owner of a chatroom has the privilege to dismiss it.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Fetch the properties of chatroom form sever. This is an asynchronous method.
| roomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains keyValues and the error message if the method call fails. |
|
required |
Fetch the properties of chatroom form sever. This is an asynchronous method.
| roomId | The chatroom ID. |
| keys | Chat room attribute keys.Empty callback all. |
| aCompletionBlock | The completion block, which contains keyValues and the error message if the method call fails. |
|
required |
Fetches the chatroom's specification.
Deprecated, please use getChatroomSpecificationFromServerWithId:error: instead.
This is a synchronous method and blocks the current thread.
| aChatroomId | The chatroom ID. |
| aIncludeMembersList | Whether to get the member list. If you set the parameter as YES, it will return no more than 200 members. |
| pError | The error information if the method fails: Error. |
|
required |
Gets all the chatrooms from server.
Deprecated, please use getChatroomsFromServerWithPage instead.
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Gets all the chatrooms from the server.
Deprecated, please use getChatroomsFromServerWithPage instead.
This is a synchronous method and blocks the current thread.
| pError | The error information if the method fails: Error. |
|
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 chatroom's blocklist.
Only the chatroom owner or admin can call this method.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| 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 blocklist of chatroom from the server.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aChatroomId | The chatroom ID. |
| aPageNum | The page number. |
| aPageSize | The page size. |
| 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 list of members who were muted in the chatroom from the server.
Only the chatroom owner or admin can call this method.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| 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 list of members who are muted in the chatroom from the server.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aChatroomId | The chatroom ID. |
| aPageNum | The page number. |
| 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 chat room specifications.
Deprecated, please use getChatroomSpecificationFromServerWithId:completion: instead.
| aChatroomId | The chatroom ID. |
| aIncludeMembersList | Whether to get the member list. If you set the parameter as YES, it will return 200 members. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
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 |
Fetches the chat room specifications.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| aFetchMembers | Whether to get the member list. If you set the parameter as YES, it will return no more than 200 members. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Gets the allowlist of a chatroom from the server.
Only the chatroom owner or admin can call this method.
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 allowlist of a chatroom from the server.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Checks whether the current user is on the mute list.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Checks whether the current user is on the allowlist.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Checks whether the current user is on the allowlist.
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 |
Mutes all members.
Only the chatroom owner or admin can call this method.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Mutes all members.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Mutes chatroom members.
Only the chatroom owner or admin can call this method.
This is an asynchronous method.
| aMuteMembers | The list of mute. |
| aMuteMilliseconds | Muted time duration in millisecond |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Mutes chatroom members.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aMuteMembers | The list of members to mute. |
| aMuteMilliseconds | Muted time duration in millisecond. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Removes a chatroom admin.
Only the chatroom owner and admin can call this method.
This is an asynchronous method.
| aAdmin | The admin to be removed. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Removes a chatroom admin.
Only the chatroom owner can call this method.
This is a synchronous method and blocks the current thread.
| aAdmin | The admin to be removed. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Removes a custom chat room attribute.
This is an asynchronous method.
| aChatroomId | The chat room ID. |
| key | The key of the chat room attribute to remove. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. If certain attribute keys fail to be added, the SDK returns failureKeys map in key-value format, where the key is the attribute key, and the value is the reason for the failure. |
|
required |
Removes custom chat room attributes forcibly.
This is an asynchronous method.
| aChatroomId | The chat room ID. |
| key | The keys of the custom chat room attributes to remove. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. If certain attribute keys fail to be added, the SDK returns failureKeys map in key-value format, where the key is the attribute key and the value is the reason for the failure. |
|
required |
Removes custom chat room attributes.
This is an asynchronous method.
| aChatroomId | The chat room ID. |
| attributes | The keys of the chat room attributes to remove. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. If certain attribute keys fail to be added, the SDK returns failureKeys map in key-value format, where the key is the attribute key, and the value is the reason for the failure. |
|
required |
Removes custom chat room attributes forcibly.
This is an asynchronous method.
| aChatroomId | The chat room ID. |
| keyValues | The array of chat room attribute keys. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Removes the delegate.
| aDelegate | The delegate that you want to remove. |
|
required |
Removes members from a chatroom.
Only the chatroom owner or admin can call this method.
This is an asynchronous method.
| aMembers | The users to be removed from the chatroom. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Removes members from a chatroom.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aMembers | The users to be removed from the chatroom. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Removes members from the allowlist.
Only the chatroom owner or admin can call this method.
This is an asynchronous method.
| aMembers | The members to be removed from the allowlist. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Removes the members of the allowlist.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aMembers | The members to be removed from the allowlist. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Sets a custom chat room attribute.
This is an asynchronous method.
| roomId | The chat room ID. |
| key | The chat room attribute key that specifies the attribute name. The attribute name can contain 128 characters at most. A chat room can have a maximum of 100 custom attributes. The following character sets are supported:
|
| value | The chat room attribute value. The attribute value can contain a maximum of 4096 characters. The total length of custom chat room attributes cannot exceed 10 GB for each app. |
| autoDelete | Whether to delete the custom chat room attributes set by the member when he or she exits the chat room.
|
| aCompletionBlock | The completion block, which contains the error message if the method call fails. If certain attribute keys fail to be added, the SDK returns failureKeys map in key-value format, where the key is the attribute key, and the value is the reason for the failure. |
|
required |
Sets a custom chat room attribute forcibly.
This is an asynchronous method.
| roomId | The chat room ID. |
| key | The chat room attribute key that specifies the attribute name. The attribute name can contain 128 characters at most. A chat room can have a maximum of 100 custom attributes. The following character sets are supported:
|
| value | The attribute value to set. A single Value can not exceed 4096 characters. The total attribute can not exceed 10 GB. |
| autoDelete | Whether to delete the chat room attributes set by the member when he or she exits the chat room.
|
| aCompletionBlock | The completion block, which contains the error message if the method call fails. If certain attribute keys fail to be added, the SDK returns failureKeys map in key-value format, where the key is the attribute key, and the value is the reason for the failure. |
|
required |
Sets custom attributes of the chat room.
This is an asynchronous method.
| roomId | The chat room ID. |
| attributes | The custom chat room attributes in key-value pairs, where the key is the attribute name and the value is the attribute value. |
| autoDelete | Whether to delete the chat room attributes set by the member when he or she exits the chat room.
|
| aCompletionBlock | The completion block, which contains the error message if the method call fails. If certain attribute keys fail to be added, the SDK returns failureKeys map in key-value format, where the key is the attribute key, and the value is the reason for the failure. |
|
required |
Sets custom chat room attributes forcibly.
This is an asynchronous method.
| roomId | The chat room ID. |
| attributes | The custom chat room attributes in key-value pairs, where the key is the attribute name and the value is the attribute value. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. If certain attribute keys fail to be added, the SDK returns failureKeys map in key-value format, where the key is the attribute key, and the value is the reason for the failure. |
|
required |
Removes users from the chatroom blocklist.
Only the chatroom owner can call this method.
This is an asynchronous method.
| aMembers | The users to be removed from the blocklist. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Removes users from chatroom blocklist.
Only the chatroom owner can call this method.
This is a synchronous method and blocks the current thread.
| aMembers | The users to be removed from the blocklist. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Unmute all members.
Only the chatroom owner or admin can call this method.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Unmute all members.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Unmutes chatroom members.
Only the chatroom owner or admin can call this method.
This is an asynchronous method.
| aMembers | The list of unmute. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Unmutes chatroom members.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aMembers | The list of members to unmute. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Changes the announcement of chatroom.
Only the chatroom owner or admin can call this method.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| aAnnouncement | The announcement of the chatroom. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Changes the announcement of the chatroom.
Only the chatroom owner or admin can call this method.
This is a synchronous method and blocks the current thread.
| aChatroomId | The chatroom ID. |
| aAnnouncement | The announcement of the chatroom. |
| pError | The error information if the method fails: Error. |
|
required |
Changes the chatroom owner.
Only the chatroom owner can call this method.
This is an asynchronous method.
| aChatroomId | The chatroom ID. |
| aNewOwner | The new owner. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Changes the chatroom owner.
Only the chatroom owner can call this method.
This is a synchronous method and blocks the current thread.
| aChatroomId | The chatroom ID. |
| aNewOwner | The new owner. |
| pError | The error information if the method fails: Error. |
|
required |
Changes the chatroom's description.
Only the chatroom owner can call this method.
This is an asynchronous method.
| aDescription | The new description. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Changes chatroom description.
Only the chatroom owner can call this method.
This is a synchronous method and blocks the current thread.
| aDescription | The new description. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |
|
required |
Changes the chatroom subject.
Only the chatroom owner can call this method.
This is an asynchronous method.
| aSubject | The new subject of the chatroom. |
| aChatroomId | The chatroom ID. |
| aCompletionBlock | The completion block, which contains the error message if the method call fails. |
|
required |
Changes the chatroom‘s subject.
Only the chatroom owner can call this method.
This is a synchronous method and blocks the current thread.
| aSubject | The new subject of the chatroom. |
| aChatroomId | The chatroom ID. |
| pError | The error information if the method fails: Error. |