AgoraChatSDK 1.3.1
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
42- (void)userDidJoinChatroom:(AgoraChatroom *)aChatroom
43 user:(NSString *)aUsername
44 ext:(NSString* _Nullable)ext;
45
53- (void)userDidLeaveChatroom:(AgoraChatroom *)aChatroom
54 user:(NSString *)aUsername;
55
63- (void)didDismissFromChatroom:(AgoraChatroom *)aChatroom
64 reason:(AgoraChatroomBeKickedReason)aReason;
65
72- (void)chatroomSpecificationDidUpdate:(AgoraChatroom *)aChatroom;
73
82- (void)chatroomMuteListDidUpdate:(AgoraChatroom *)aChatroom
83 addedMutedMembers:(NSArray<NSString *> *)aMutes
84 muteExpire:(NSInteger)aMuteExpire;
85
93- (void)chatroomMuteListDidUpdate:(AgoraChatroom *)aChatroom
94 removedMutedMembers:(NSArray<NSString *> *)aMutes;
95
103- (void)chatroomWhiteListDidUpdate:(AgoraChatroom *)aChatroom
104 addedWhiteListMembers:(NSArray<NSString *> *)aMembers;
105
113- (void)chatroomWhiteListDidUpdate:(AgoraChatroom *)aChatroom
114 removedWhiteListMembers:(NSArray<NSString *> *)aMembers;
115
123- (void)chatroomAllMemberMuteChanged:(AgoraChatroom *)aChatroom
124 isAllMemberMuted:(BOOL)aMuted;
125
133- (void)chatroomAdminListDidUpdate:(AgoraChatroom *)aChatroom
134 addedAdmin:(NSString *)aAdmin;
135
143- (void)chatroomAdminListDidUpdate:(AgoraChatroom *)aChatroom
144 removedAdmin:(NSString *)aAdmin;
145
154- (void)chatroomOwnerDidUpdate:(AgoraChatroom *)aChatroom
155 newOwner:(NSString *)aNewOwner
156 oldOwner:(NSString *)aOldOwner;
157
165- (void)chatroomAnnouncementDidUpdate:(AgoraChatroom *)aChatroom
166 announcement:(NSString * _Nullable )aAnnouncement;
175- (void)chatroomAttributesDidUpdated:( NSString * _Nonnull )roomId attributeMap:(NSDictionary<NSString*,NSString*> * _Nonnull)attributeMap from:(NSString * _Nonnull)fromId;
184- (void)chatroomAttributesDidRemoved:( NSString * _Nonnull )roomId attributes:(NSArray<__kindof NSString*> * _Nonnull)attributes from:(NSString * _Nonnull)fromId;
185
186#pragma mark - Deprecated methods
187
197- (void)didReceiveUserJoinedChatroom:(AgoraChatroom *)aChatroom
198 username:(NSString *)aUsername __deprecated_msg("Use -userDidJoinChatroom:user: instead");
199
209- (void)didReceiveUserLeavedChatroom:(AgoraChatroom *)aChatroom
210 username:(NSString *)aUsername __deprecated_msg("Use -userDidLeaveChatroom:reason: instead");
211
221- (void)didReceiveKickedFromChatroom:(AgoraChatroom *)aChatroom
222 reason:(AgoraChatroomBeKickedReason)aReason __deprecated_msg("Use -didDismissFromChatroom:reason: instead");
223
231- (void)userDidJoinChatroom:(AgoraChatroom *)aChatroom
232 user:(NSString *)aUsername __deprecated_msg("Use -userDidJoinChatroom:user:ext: instead");
233@end
234
235NS_ASSUME_NONNULL_END
Definition: AgoraChatroom.h:30
Definition: AgoraChatroomManagerDelegate.h:29