HyphenateSDK  3.6.1
EMChatroomManagerDelegate.h
1 
15 #import <Foundation/Foundation.h>
16 
24 typedef enum{
25  EMChatroomBeKickedReasonBeRemoved = 0,
26  EMChatroomBeKickedReasonDestroyed,
27  EMChatroomBeKickedReasonOffline,
28 }EMChatroomBeKickedReason;
29 
30 @class EMChatroom;
31 
39 @protocol EMChatroomManagerDelegate <NSObject>
40 
41 @optional
42 
56 - (void)userDidJoinChatroom:(EMChatroom *)aChatroom
57  user:(NSString *)aUsername;
58 
72 - (void)userDidLeaveChatroom:(EMChatroom *)aChatroom
73  user:(NSString *)aUsername;
74 
88 - (void)didDismissFromChatroom:(EMChatroom *)aChatroom
89  reason:(EMChatroomBeKickedReason)aReason;
90 
106 - (void)chatroomMuteListDidUpdate:(EMChatroom *)aChatroom
107  addedMutedMembers:(NSArray *)aMutes
108  muteExpire:(NSInteger)aMuteExpire;
109 
123 - (void)chatroomMuteListDidUpdate:(EMChatroom *)aChatroom
124  removedMutedMembers:(NSArray *)aMutes;
125 
139 - (void)chatroomAdminListDidUpdate:(EMChatroom *)aChatroom
140  addedAdmin:(NSString *)aAdmin;
141 
155 - (void)chatroomAdminListDidUpdate:(EMChatroom *)aChatroom
156  removedAdmin:(NSString *)aAdmin;
157 
173 - (void)chatroomOwnerDidUpdate:(EMChatroom *)aChatroom
174  newOwner:(NSString *)aNewOwner
175  oldOwner:(NSString *)aOldOwner;
176 
190 - (void)chatroomAnnouncementDidUpdate:(EMChatroom *)aChatroom
191  announcement:(NSString *)aAnnouncement;
192 
193 #pragma mark - Deprecated methods
194 
208 - (void)didReceiveUserJoinedChatroom:(EMChatroom *)aChatroom
209  username:(NSString *)aUsername __deprecated_msg("Use -userDidJoinChatroom:user:");
210 
224 - (void)didReceiveUserLeavedChatroom:(EMChatroom *)aChatroom
225  username:(NSString *)aUsername __deprecated_msg("Use -userDidLeaveChatroom:reason:");
226 
240 - (void)didReceiveKickedFromChatroom:(EMChatroom *)aChatroom
241  reason:(EMChatroomBeKickedReason)aReason __deprecated_msg("Use -didDismissFromChatroom:reason:");
242 @end
Definition: EMChatroomManagerDelegate.h:39
Definition: EMChatroom.h:41