HyphenateChatSDK 4.10.0
EMClientDelegate.h
1
15#import <Foundation/Foundation.h>
16#import "EMErrorCode.h"
17#import "EMCommonDefs.h"
18#import "EMLoginExtensionInfo.h"
19
27typedef 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
129
145- (void)userAccountDidForcedToLogout:(EMError *_Nullable)aError;
146
154- (void)tokenWillExpire:(EMErrorCode)aErrorCode;
155
163- (void)tokenDidExpire:(EMErrorCode)aErrorCode;
164
173
182
183#pragma mark - EM_DEPRECATED_IOS 4.1.0
191- (void)userAccountDidLoginFromOtherDevice EM_DEPRECATED_IOS(3_1_0, 4_1_0, "Use userAccountDidLoginFromOtherDevice: instead");
192
193@end
Definition: EMError.h:27
Definition: EMLoginExtensionInfo.h:14
Definition: EMClientDelegate.h:47
3_1_0, 4_1_0, "Use userAccountDidLoginFromOtherDevice: instead" EM_DEPRECATED_IOS()
void userAccountDidRemoveFromServer()
void onOfflineMessageSyncFinish()
void onOfflineMessageSyncStart()