HyphenateChatSDK 4.10.0
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
62- (void)userDidJoinChatroom:(EMChatroom *)aChatroom
63 user:(NSString *)aUsername
64 ext:(NSString* _Nullable)ext;
65
79- (void)userDidLeaveChatroom:(EMChatroom *)aChatroom
80 user:(NSString *)aUsername;
81
95- (void)didDismissFromChatroom:(EMChatroom *)aChatroom
96 reason:(EMChatroomBeKickedReason)aReason;
97
109- (void)chatroomSpecificationDidUpdate:(EMChatroom *)aChatroom;
110
126- (void)chatroomMuteListDidUpdate:(EMChatroom *)aChatroom
127 addedMutedMembers:(NSArray<NSString *> *)aMutes
128 muteExpire:(NSInteger)aMuteExpire;
129
143- (void)chatroomMuteListDidUpdate:(EMChatroom *)aChatroom
144 removedMutedMembers:(NSArray<NSString *> *)aMutes;
145
159- (void)chatroomWhiteListDidUpdate:(EMChatroom *)aChatroom
160 addedWhiteListMembers:(NSArray<NSString *> *)aMembers;
161
175- (void)chatroomWhiteListDidUpdate:(EMChatroom *)aChatroom
176 removedWhiteListMembers:(NSArray<NSString *> *)aMembers;
177
191- (void)chatroomAllMemberMuteChanged:(EMChatroom *)aChatroom
192 isAllMemberMuted:(BOOL)aMuted;
193
207- (void)chatroomAdminListDidUpdate:(EMChatroom *)aChatroom
208 addedAdmin:(NSString *)aAdmin;
209
223- (void)chatroomAdminListDidUpdate:(EMChatroom *)aChatroom
224 removedAdmin:(NSString *)aAdmin;
225
241- (void)chatroomOwnerDidUpdate:(EMChatroom *)aChatroom
242 newOwner:(NSString *)aNewOwner
243 oldOwner:(NSString *)aOldOwner;
244
258- (void)chatroomAnnouncementDidUpdate:(EMChatroom *)aChatroom
259 announcement:(NSString * _Nullable )aAnnouncement;
275- (void)chatroomAttributesDidUpdated:( NSString * _Nonnull )roomId attributeMap:(NSDictionary<NSString*,NSString*> * _Nonnull)attributeMap from:(NSString * _Nonnull)fromId;
291- (void)chatroomAttributesDidRemoved:( NSString * _Nonnull )roomId attributes:(NSArray<__kindof NSString*> * _Nonnull)attributes from:(NSString * _Nonnull)fromId;
292
293#pragma mark - Deprecated methods
294
312- (void)didReceiveUserJoinedChatroom:(EMChatroom *)aChatroom
313 username:(NSString *)aUsername __deprecated_msg("Use -userDidJoinChatroom:user: instead");
314
332- (void)didReceiveUserLeavedChatroom:(EMChatroom *)aChatroom
333 username:(NSString *)aUsername __deprecated_msg("Use -userDidLeaveChatroom:reason: instead");
334
352- (void)didReceiveKickedFromChatroom:(EMChatroom *)aChatroom
353 reason:(EMChatroomBeKickedReason)aReason __deprecated_msg("Use -didDismissFromChatroom:reason: instead");
354
368- (void)userDidJoinChatroom:(EMChatroom *)aChatroom
369 user:(NSString *)aUsername __deprecated_msg("Use -userDidJoinChatroom:user:ext: instead");
370@end
371
372NS_ASSUME_NONNULL_END
Definition: EMChatroom.h:42
Definition: EMChatroomManagerDelegate.h:41