HyphenateChatSDK 4.12.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
124- (void)chatroomMuteListDidUpdate:(EMChatroom *)aChatroom
125 addedMutedMembers:(NSDictionary<NSString *,NSNumber*> *)aMutes;
126
140- (void)chatroomMuteListDidUpdate:(EMChatroom *)aChatroom
141 removedMutedMembers:(NSArray<NSString *> *)aMutes;
142
156- (void)chatroomWhiteListDidUpdate:(EMChatroom *)aChatroom
157 addedWhiteListMembers:(NSArray<NSString *> *)aMembers;
158
172- (void)chatroomWhiteListDidUpdate:(EMChatroom *)aChatroom
173 removedWhiteListMembers:(NSArray<NSString *> *)aMembers;
174
188- (void)chatroomAllMemberMuteChanged:(EMChatroom *)aChatroom
189 isAllMemberMuted:(BOOL)aMuted;
190
204- (void)chatroomAdminListDidUpdate:(EMChatroom *)aChatroom
205 addedAdmin:(NSString *)aAdmin;
206
220- (void)chatroomAdminListDidUpdate:(EMChatroom *)aChatroom
221 removedAdmin:(NSString *)aAdmin;
222
238- (void)chatroomOwnerDidUpdate:(EMChatroom *)aChatroom
239 newOwner:(NSString *)aNewOwner
240 oldOwner:(NSString *)aOldOwner;
241
255- (void)chatroomAnnouncementDidUpdate:(EMChatroom *)aChatroom
256 announcement:(NSString * _Nullable )aAnnouncement;
272- (void)chatroomAttributesDidUpdated:( NSString * _Nonnull )roomId attributeMap:(NSDictionary<NSString*,NSString*> * _Nonnull)attributeMap from:(NSString * _Nonnull)fromId;
288- (void)chatroomAttributesDidRemoved:( NSString * _Nonnull )roomId attributes:(NSArray<__kindof NSString*> * _Nonnull)attributes from:(NSString * _Nonnull)fromId;
289
290#pragma mark - Deprecated methods
291
305- (void)userDidJoinChatroom:(EMChatroom *)aChatroom
306 user:(NSString *)aUsername __deprecated_msg("Use -userDidJoinChatroom:user:ext: instead");
307
323- (void)chatroomMuteListDidUpdate:(EMChatroom *)aChatroom
324 addedMutedMembers:(NSArray<NSString *> *)aMutes
325 muteExpire:(NSInteger)aMuteExpire __deprecated_msg("Use -chatroomMuteListDidUpdate:addedMutedMembers: instead");;
326@end
327
328NS_ASSUME_NONNULL_END
Definition: EMChatroom.h:42
Definition: EMChatroomManagerDelegate.h:41