HyphenateChatSDK 4.10.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 EMMultiDevicesEventGroupDisabled = 34,
63 EMMultiDevicesEventGroupAble = 35,
66 EMMultiDevicesEventChatThreadCreate = 40,
67 EMMultiDevicesEventChatThreadDestroy = 41,
68 EMMultiDevicesEventChatThreadJoin = 42,
69 EMMultiDevicesEventChatThreadLeave = 43,
70 EMMultiDevicesEventChatThreadUpdate = 44,
71 EMMultiDevicesEventChatThreadKick = 45,
72 EMMultiDevicesEventGroupMemberAttributesChanged = 52,
73 EMMultiDevicesEventConversationPinned = 60,
74 EMMultiDevicesEventConversationUnpinned = 61,
75 EMMultiDevicesEventConversationDelete = 62,
76 EMMultiDevicesEventConversationUpdateMark = 63,
77 EMMultiDevicesEventConversationMuteInfoChanged = 64,
78};
79
80@protocol EMMultiDevicesDelegate <NSObject>
81
82@optional
83
99- (void)multiDevicesContactEventDidReceive:(EMMultiDevicesEvent)aEvent
100 username:(NSString * _Nonnull)aUsername
101 ext:(NSString * _Nullable)aExt;
102
118- (void)multiDevicesGroupEventDidReceive:(EMMultiDevicesEvent)aEvent
119 groupId:(NSString * _Nonnull)aGroupId
120 ext:(id _Nullable)aExt;
137- (void)multiDevicesChatThreadEventDidReceive:(EMMultiDevicesEvent)aEvent
138 threadId:(NSString * _Nonnull)aThreadId
139 ext:(id _Nullable)aExt;
140
153- (void)multiDevicesUndisturbEventNotifyFormOtherDeviceData:(NSString *_Nullable)undisturbData __deprecated_msg("Use -multiDevicesConversationEvent:conversationId:conversationType: instead");
167-(void)multiDevicesMessageBeRemoved:(NSString *_Nonnull)conversationId deviceId:(NSString *_Nonnull)deviceId;
168
184- (void)multiDevicesConversationEvent:(EMMultiDevicesEvent)event conversationId:(NSString *_Nonnull)conversationId conversationType:(EMConversationType)conversationType;
185
186@end
Definition: EMMultiDevicesDelegate.h:80