AgoraChatSDK 1.2.0
AgoraChatroomManagerDelegate.h
1
9#import <Foundation/Foundation.h>
10NS_ASSUME_NONNULL_BEGIN
11
16typedef NS_ENUM(NSInteger, AgoraChatroomBeKickedReason)
17{
18 AgoraChatroomBeKickedReasonBeRemoved = 0,
19 AgoraChatroomBeKickedReasonDestroyed,
20 AgoraChatroomBeKickedReasonOffline,
21};
22
23@class AgoraChatroom;
24
29@protocol AgoraChatroomManagerDelegate <NSObject>
30
31@optional
32
40- (void)userDidJoinChatroom:(AgoraChatroom *)aChatroom
41 user:(NSString *)aUsername;
42
50- (void)userDidLeaveChatroom:(AgoraChatroom *)aChatroom
51 user:(NSString *)aUsername;
52
60- (void)didDismissFromChatroom:(AgoraChatroom *)aChatroom
61 reason:(AgoraChatroomBeKickedReason)aReason;
62
69- (void)chatroomSpecificationDidUpdate:(AgoraChatroom *)aChatroom;
70
79- (void)chatroomMuteListDidUpdate:(AgoraChatroom *)aChatroom
80 addedMutedMembers:(NSArray<NSString *> *)aMutes
81 muteExpire:(NSInteger)aMuteExpire;
82
90- (void)chatroomMuteListDidUpdate:(AgoraChatroom *)aChatroom
91 removedMutedMembers:(NSArray<NSString *> *)aMutes;
92
100- (void)chatroomWhiteListDidUpdate:(AgoraChatroom *)aChatroom
101 addedWhiteListMembers:(NSArray<NSString *> *)aMembers;
102
110- (void)chatroomWhiteListDidUpdate:(AgoraChatroom *)aChatroom
111 removedWhiteListMembers:(NSArray<NSString *> *)aMembers;
112
120- (void)chatroomAllMemberMuteChanged:(AgoraChatroom *)aChatroom
121 isAllMemberMuted:(BOOL)aMuted;
122
130- (void)chatroomAdminListDidUpdate:(AgoraChatroom *)aChatroom
131 addedAdmin:(NSString *)aAdmin;
132
140- (void)chatroomAdminListDidUpdate:(AgoraChatroom *)aChatroom
141 removedAdmin:(NSString *)aAdmin;
142
151- (void)chatroomOwnerDidUpdate:(AgoraChatroom *)aChatroom
152 newOwner:(NSString *)aNewOwner
153 oldOwner:(NSString *)aOldOwner;
154
162- (void)chatroomAnnouncementDidUpdate:(AgoraChatroom *)aChatroom
163 announcement:(NSString * _Nullable )aAnnouncement;
172- (void)chatroomAttributesDidUpdated:( NSString * _Nonnull )roomId attributeMap:(NSDictionary<NSString*,NSString*> * _Nonnull)attributeMap from:(NSString * _Nonnull)fromId;
181- (void)chatroomAttributesDidRemoved:( NSString * _Nonnull )roomId attributes:(NSArray<__kindof NSString*> * _Nonnull)attributes from:(NSString * _Nonnull)fromId;
182
183#pragma mark - Deprecated methods
184
194- (void)didReceiveUserJoinedChatroom:(AgoraChatroom *)aChatroom
195 username:(NSString *)aUsername __deprecated_msg("Use -userDidJoinChatroom:user: instead");
196
206- (void)didReceiveUserLeavedChatroom:(AgoraChatroom *)aChatroom
207 username:(NSString *)aUsername __deprecated_msg("Use -userDidLeaveChatroom:reason: instead");
208
218- (void)didReceiveKickedFromChatroom:(AgoraChatroom *)aChatroom
219 reason:(AgoraChatroomBeKickedReason)aReason __deprecated_msg("Use -didDismissFromChatroom:reason: instead");
220@end
221
222NS_ASSUME_NONNULL_END
Definition: AgoraChatroom.h:30
Definition: AgoraChatroomManagerDelegate.h:29