HyphenateChatSDK 4.5.0
EMClientDelegate.h
1
15#import <Foundation/Foundation.h>
16#import "EMErrorCode.h"
17#import "EMCommonDefs.h"
18
26typedef NS_ENUM(NSInteger, EMConnectionState) {
27 EMConnectionConnected = 0,
31 EMConnectionDisconnected,
35};
36
37@class EMError;
38
46@protocol EMClientDelegate <NSObject>
47
48@optional
49
69- (void)connectionStateDidChange:(EMConnectionState)aConnectionState;
70
82- (void)autoLoginDidCompleteWithError:(EMError * _Nullable)aError;
83
95- (void)userAccountDidLoginFromOtherDevice:(NSString* _Nullable)aDeviceName;
96
105
114
130- (void)userAccountDidForcedToLogout:(EMError *_Nullable)aError;
131
139- (void)tokenWillExpire:(EMErrorCode)aErrorCode;
140
148- (void)tokenDidExpire:(EMErrorCode)aErrorCode;
149
150#pragma mark - EM_DEPRECATED_IOS 4.1.0
158- (void)userAccountDidLoginFromOtherDevice EM_DEPRECATED_IOS(3_1_0, 4_1_0, "Use userAccountDidLoginFromOtherDevice: instead");
159
160@end
Definition: EMError.h:27
Definition: EMClientDelegate.h:46
3_1_0, 4_1_0, "Use userAccountDidLoginFromOtherDevice: instead" EM_DEPRECATED_IOS()
void userAccountDidRemoveFromServer()