HyphenateChatSDK 4.2.3
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
151@end
Definition: EMError.h:27
Definition: EMClientDelegate.h:46
void userAccountDidRemoveFromServer()