HyphenateChatSDK 4.0.0
EMMultiDevicesDelegate.h
1
15#import <Foundation/Foundation.h>
16
28typedef NS_ENUM(NSInteger, EMMultiDevicesEvent) {
29 EMMultiDevicesEventUnknow = -1,
30 EMMultiDevicesEventContactRemove = 2,
31 EMMultiDevicesEventContactAccept = 3,
32 EMMultiDevicesEventContactDecline = 4,
33 EMMultiDevicesEventContactBan = 5,
34 EMMultiDevicesEventContactAllow = 6,
36 EMMultiDevicesEventGroupCreate = 10,
37 EMMultiDevicesEventGroupDestroy = 11,
38 EMMultiDevicesEventGroupJoin = 12,
39 EMMultiDevicesEventGroupLeave = 13,
40 EMMultiDevicesEventGroupApply = 14,
41 EMMultiDevicesEventGroupApplyAccept = 15,
42 EMMultiDevicesEventGroupApplyDecline = 16,
43 EMMultiDevicesEventGroupInvite = 17,
44 EMMultiDevicesEventGroupInviteAccept = 18,
45 EMMultiDevicesEventGroupInviteDecline = 19,
46 EMMultiDevicesEventGroupKick = 20,
47 EMMultiDevicesEventGroupBan = 21,
48 EMMultiDevicesEventGroupAllow = 22,
49 EMMultiDevicesEventGroupBlock = 23,
50 EMMultiDevicesEventGroupUnBlock = 24,
51 EMMultiDevicesEventGroupAssignOwner = 25,
52 EMMultiDevicesEventGroupAddAdmin = 26,
53 EMMultiDevicesEventGroupRemoveAdmin = 27,
54 EMMultiDevicesEventGroupAddMute = 28,
55 EMMultiDevicesEventGroupRemoveMute = 29,
57 EMMultiDevicesEventGroupAddWhiteList = 30,
58 EMMultiDevicesEventGroupRemoveWhiteList = 31,
59 EMMultiDevicesEventGroupAllBan = 32,
60 EMMultiDevicesEventGroupRemoveAllBan = 33,
61 EMMultiDevicesEventGroupDisabled = 34,
62 EMMultiDevicesEventGroupAble = 35,
65 EMMultiDevicesEventChatThreadCreate = 40,
66 EMMultiDevicesEventChatThreadDestroy = 41,
67 EMMultiDevicesEventChatThreadJoin = 42,
68 EMMultiDevicesEventChatThreadLeave = 43,
69 EMMultiDevicesEventChatThreadUpdate = 44,
70 EMMultiDevicesEventChatThreadKick = 45,
71};
72
73@protocol EMMultiDevicesDelegate <NSObject>
74
75@optional
76
92- (void)multiDevicesContactEventDidReceive:(EMMultiDevicesEvent)aEvent
93 username:(NSString * _Nonnull)aUsername
94 ext:(NSString * _Nullable)aExt;
95
111- (void)multiDevicesGroupEventDidReceive:(EMMultiDevicesEvent)aEvent
112 groupId:(NSString * _Nonnull)aGroupId
113 ext:(id _Nullable)aExt;
130- (void)multiDevicesChatThreadEventDidReceive:(EMMultiDevicesEvent)aEvent
131 threadId:(NSString * _Nonnull)aThreadId
132 ext:(id _Nullable)aExt;
133
146- (void)multiDevicesUndisturbEventNotifyFormOtherDeviceData:(NSString *_Nullable)undisturbData;
160-(void)multiDevicesMessageBeRemoved:(NSString *_Nonnull)conversationId deviceId:(NSString *_Nonnull)deviceId;
161
162@end
Definition: EMMultiDevicesDelegate.h:73