HyphenateChatSDK 5.0.0
EMMultiDevicesDelegate.h
1
15#import <Foundation/Foundation.h>
16#import "EMConversation.h"
17
29typedef NS_ENUM(NSInteger, EMMultiDevicesEvent) {
30 EMMultiDevicesEventUnknow = -1,
31 EMMultiDevicesEventContactRemove = 2,
32 EMMultiDevicesEventContactAccept = 3,
33 EMMultiDevicesEventContactDecline = 4,
34 EMMultiDevicesEventContactBan = 5,
35 EMMultiDevicesEventContactAllow = 6,
37 EMMultiDevicesEventGroupCreate = 10,
38 EMMultiDevicesEventGroupDestroy = 11,
39 EMMultiDevicesEventGroupJoin = 12,
40 EMMultiDevicesEventGroupLeave = 13,
41 EMMultiDevicesEventGroupApply = 14,
42 EMMultiDevicesEventGroupApplyAccept = 15,
43 EMMultiDevicesEventGroupApplyDecline = 16,
44 EMMultiDevicesEventGroupInvite = 17,
45 EMMultiDevicesEventGroupInviteAccept = 18,
46 EMMultiDevicesEventGroupInviteDecline = 19,
47 EMMultiDevicesEventGroupKick = 20,
48 EMMultiDevicesEventGroupBan = 21,
49 EMMultiDevicesEventGroupAllow = 22,
50 EMMultiDevicesEventGroupBlock = 23,
51 EMMultiDevicesEventGroupUnBlock = 24,
52 EMMultiDevicesEventGroupAssignOwner = 25,
53 EMMultiDevicesEventGroupAddAdmin = 26,
54 EMMultiDevicesEventGroupRemoveAdmin = 27,
55 EMMultiDevicesEventGroupAddMute = 28,
56 EMMultiDevicesEventGroupRemoveMute = 29,
58 EMMultiDevicesEventGroupAddWhiteList = 30,
59 EMMultiDevicesEventGroupRemoveWhiteList = 31,
60 EMMultiDevicesEventGroupAllBan = 32,
61 EMMultiDevicesEventGroupRemoveAllBan = 33,
62 EMMultiDevicesEventGroupUpdate = 34,
64 EMMultiDevicesEventChatThreadCreate = 40,
65 EMMultiDevicesEventChatThreadDestroy = 41,
66 EMMultiDevicesEventChatThreadJoin = 42,
67 EMMultiDevicesEventChatThreadLeave = 43,
68 EMMultiDevicesEventChatThreadUpdate = 44,
69 EMMultiDevicesEventChatThreadKick = 45,
70 EMMultiDevicesEventGroupMemberAttributesChanged = 52,
71 EMMultiDevicesEventConversationPinned = 60,
72 EMMultiDevicesEventConversationUnpinned = 61,
73 EMMultiDevicesEventConversationDelete = 62,
74 EMMultiDevicesEventConversationUpdateMark = 63,
75 EMMultiDevicesEventConversationMuteInfoChanged = 64,
77 EMMultiDevicesEventConversationUnreadMessageCountCleared = 65,
79 EMMultiDevicesEventAllConversationUnreadMessageCountCleared = 66,
80};
81
82@protocol EMMultiDevicesDelegate <NSObject>
83
84@optional
85
101- (void)multiDevicesContactEventDidReceive:(EMMultiDevicesEvent)aEvent
102 username:(NSString * _Nonnull)aUsername
103 ext:(NSString * _Nullable)aExt;
104
120- (void)multiDevicesGroupEventDidReceive:(EMMultiDevicesEvent)aEvent
121 groupId:(NSString * _Nonnull)aGroupId
122 ext:(id _Nullable)aExt;
139- (void)multiDevicesChatThreadEventDidReceive:(EMMultiDevicesEvent)aEvent
140 threadId:(NSString * _Nonnull)aThreadId
141 ext:(id _Nullable)aExt;
142
155- (void)multiDevicesUndisturbEventNotifyFormOtherDeviceData:(NSString *_Nullable)undisturbData __deprecated_msg("Use -multiDevicesConversationEvent:conversationId:conversationType: instead");
169-(void)multiDevicesMessageBeRemoved:(NSString *_Nonnull)conversationId deviceId:(NSString *_Nonnull)deviceId;
170
186- (void)multiDevicesConversationEvent:(EMMultiDevicesEvent)event conversationId:(NSString *_Nonnull)conversationId conversationType:(EMConversationType)conversationType;
187
188@end
Definition: EMMultiDevicesDelegate.h:82