AgoraChatSDK 1.3.1
AgoraChatClientDelegate.h
1
9#import <Foundation/Foundation.h>
10#import "AgoraChatErrorCode.h"
11#import "AgoraChatCommonDefs.h"
12#import "AgoraChatLoginExtensionInfo.h"
13
18typedef NS_ENUM(NSInteger, AgoraChatConnectionState) {
19 AgoraChatConnectionConnected = 0,
22 AgoraChatConnectionDisconnected,
25};
26
27@class AgoraChatError;
28
33@protocol AgoraChatClientDelegate <NSObject>
34
35@optional
36
47- (void)connectionStateDidChange:(AgoraChatConnectionState)aConnectionState;
48
55- (void)autoLoginDidCompleteWithError:(AgoraChatError * _Nullable)aError;
56
63- (void)userAccountDidLoginFromOtherDevice:(NSString* _Nullable)aDeviceName EM_DEPRECATED_IOS(4_1_0, 4_7_0, "Use userAccountDidLoginFromOtherDeviceWithInfo: instead");
64
65
72- (void)userAccountDidLoginFromOtherDeviceWithInfo:(AgoraChatLoginExtensionInfo* _Nullable)info;
73
79
85
94- (void)userAccountDidForcedToLogout:(AgoraChatError *_Nullable)aError;
95
100- (void)tokenWillExpire:(AgoraChatErrorCode)aErrorCode;
101
106- (void)tokenDidExpire:(AgoraChatErrorCode)aErrorCode;
107
113
119
120#pragma mark - EM_DEPRECATED_IOS 4.1.0
125- (void)userAccountDidLoginFromOtherDevice EM_DEPRECATED_IOS(3_1_0, 4_1_0, "Use userAccountDidLoginFromOtherDevice: instead");
126
127@end
Definition: AgoraChatError.h:18
Definition: AgoraChatLoginExtensionInfo.h:14
Definition: AgoraChatClientDelegate.h:33
3_1_0, 4_1_0, "Use userAccountDidLoginFromOtherDevice: instead" EM_DEPRECATED_IOS()