AgoraChatSDK 1.2.0
AgoraChatClientDelegate.h
1
9#import <Foundation/Foundation.h>
10#import "AgoraChatErrorCode.h"
11#import "AgoraChatCommonDefs.h"
12
17typedef NS_ENUM(NSInteger, AgoraChatConnectionState) {
18 AgoraChatConnectionConnected = 0,
21 AgoraChatConnectionDisconnected,
24};
25
26@class AgoraChatError;
27
32@protocol AgoraChatClientDelegate <NSObject>
33
34@optional
35
46- (void)connectionStateDidChange:(AgoraChatConnectionState)aConnectionState;
47
54- (void)autoLoginDidCompleteWithError:(AgoraChatError * _Nullable)aError;
55
62- (void)userAccountDidLoginFromOtherDevice:(NSString* _Nullable)aDeviceName;
63
69
75
84- (void)userAccountDidForcedToLogout:(AgoraChatError *_Nullable)aError;
85
90- (void)tokenWillExpire:(AgoraChatErrorCode)aErrorCode;
91
96- (void)tokenDidExpire:(AgoraChatErrorCode)aErrorCode;
97
98#pragma mark - EM_DEPRECATED_IOS 4.1.0
103- (void)userAccountDidLoginFromOtherDevice EM_DEPRECATED_IOS(3_1_0, 4_1_0, "Use userAccountDidLoginFromOtherDevice: instead");
104
105@end
Definition: AgoraChatError.h:18
Definition: AgoraChatClientDelegate.h:32
3_1_0, 4_1_0, "Use userAccountDidLoginFromOtherDevice: instead" EM_DEPRECATED_IOS()