HyphenateChatSDK 3.9.9.1
EMChatroomManagerDelegate.h
1
15#import <Foundation/Foundation.h>
16NS_ASSUME_NONNULL_BEGIN
17
25typedef NS_ENUM(NSInteger, EMChatroomBeKickedReason)
26{
27 EMChatroomBeKickedReasonBeRemoved = 0,
28 EMChatroomBeKickedReasonDestroyed,
29 EMChatroomBeKickedReasonOffline,
30};
31
32@class EMChatroom;
33
41@protocol EMChatroomManagerDelegate <NSObject>
42
43@optional
44
58- (void)userDidJoinChatroom:(EMChatroom *)aChatroom
59 user:(NSString *)aUsername;
60
74- (void)userDidLeaveChatroom:(EMChatroom *)aChatroom
75 user:(NSString *)aUsername;
76
90- (void)didDismissFromChatroom:(EMChatroom *)aChatroom
91 reason:(EMChatroomBeKickedReason)aReason;
92
104- (void)chatroomSpecificationDidUpdate:(EMChatroom *)aChatroom;
105
121- (void)chatroomMuteListDidUpdate:(EMChatroom *)aChatroom
122 addedMutedMembers:(NSArray<NSString *> *)aMutes
123 muteExpire:(NSInteger)aMuteExpire;
124
138- (void)chatroomMuteListDidUpdate:(EMChatroom *)aChatroom
139 removedMutedMembers:(NSArray<NSString *> *)aMutes;
140
154- (void)chatroomWhiteListDidUpdate:(EMChatroom *)aChatroom
155 addedWhiteListMembers:(NSArray<NSString *> *)aMembers;
156
170- (void)chatroomWhiteListDidUpdate:(EMChatroom *)aChatroom
171 removedWhiteListMembers:(NSArray<NSString *> *)aMembers;
172
186- (void)chatroomAllMemberMuteChanged:(EMChatroom *)aChatroom
187 isAllMemberMuted:(BOOL)aMuted;
188
202- (void)chatroomAdminListDidUpdate:(EMChatroom *)aChatroom
203 addedAdmin:(NSString *)aAdmin;
204
218- (void)chatroomAdminListDidUpdate:(EMChatroom *)aChatroom
219 removedAdmin:(NSString *)aAdmin;
220
236- (void)chatroomOwnerDidUpdate:(EMChatroom *)aChatroom
237 newOwner:(NSString *)aNewOwner
238 oldOwner:(NSString *)aOldOwner;
239
253- (void)chatroomAnnouncementDidUpdate:(EMChatroom *)aChatroom
254 announcement:(NSString * _Nullable )aAnnouncement;
270- (void)chatroomAttributesDidUpdated:( NSString * _Nonnull )roomId attributeMap:(NSDictionary<NSString*,NSString*> * _Nonnull)attributeMap from:(NSString * _Nonnull)fromId;
286- (void)chatroomAttributesDidRemoved:( NSString * _Nonnull )roomId attributes:(NSArray<__kindof NSString*> * _Nonnull)attributes from:(NSString * _Nonnull)fromId;
287
288#pragma mark - Deprecated methods
289
307- (void)didReceiveUserJoinedChatroom:(EMChatroom *)aChatroom
308 username:(NSString *)aUsername __deprecated_msg("Use -userDidJoinChatroom:user: instead");
309
327- (void)didReceiveUserLeavedChatroom:(EMChatroom *)aChatroom
328 username:(NSString *)aUsername __deprecated_msg("Use -userDidLeaveChatroom:reason: instead");
329
347- (void)didReceiveKickedFromChatroom:(EMChatroom *)aChatroom
348 reason:(EMChatroomBeKickedReason)aReason __deprecated_msg("Use -didDismissFromChatroom:reason: instead");
349@end
350
351NS_ASSUME_NONNULL_END
Definition: EMChatroom.h:42
Definition: EMChatroomManagerDelegate.h:41