HyphenateChatSDK  4.7.0
EMClientDelegate.h
1 
15 #import <Foundation/Foundation.h>
16 #import "EMErrorCode.h"
17 #import "EMCommonDefs.h"
18 #import "EMLoginExtensionInfo.h"
19 
27 typedef NS_ENUM(NSInteger, EMConnectionState) {
28  EMConnectionConnected = 0,
32  EMConnectionDisconnected,
36 };
37 
38 @class EMError;
39 
47 @protocol EMClientDelegate <NSObject>
48 
49 @optional
50 
70 - (void)connectionStateDidChange:(EMConnectionState)aConnectionState;
71 
83 - (void)autoLoginDidCompleteWithError:(EMError * _Nullable)aError;
84 
96 - (void)userAccountDidLoginFromOtherDevice:(NSString* _Nullable)aDeviceName EM_DEPRECATED_IOS(4_1_0, 4_7_0, "Use userAccountDidLoginFromOtherDeviceWithInfo: instead");
97 
98 
110 - (void)userAccountDidLoginFromOtherDeviceWithInfo:(EMLoginExtensionInfo* _Nullable)info;
111 
120 
128 - (void)userDidForbidByServer;
129 
145 - (void)userAccountDidForcedToLogout:(EMError *_Nullable)aError;
146 
154 - (void)tokenWillExpire:(EMErrorCode)aErrorCode;
155 
163 - (void)tokenDidExpire:(EMErrorCode)aErrorCode;
164 
165 #pragma mark - EM_DEPRECATED_IOS 4.1.0
166 
173 - (void)userAccountDidLoginFromOtherDevice EM_DEPRECATED_IOS(3_1_0, 4_1_0, "Use userAccountDidLoginFromOtherDevice: instead");
174 
175 @end
void userAccountDidRemoveFromServer()
Definition: EMError.h:26
Definition: EMClientDelegate.h:47
Definition: EMLoginExtensionInfo.h:13
3_1_0, 4_1_0,"Use userAccountDidLoginFromOtherDevice: instead" EM_DEPRECATED_IOS()