HyphenateChatSDK  3.8.7
EMClientDelegate.h
1 
15 #import <Foundation/Foundation.h>
16 
24 typedef enum {
25  EMConnectionConnected = 0,
26  EMConnectionDisconnected,
27 } EMConnectionState;
28 
29 @class EMError;
30 
38 @protocol EMClientDelegate <NSObject>
39 
40 @optional
41 
57 - (void)connectionStateDidChange:(EMConnectionState)aConnectionState;
58 
70 - (void)autoLoginDidCompleteWithError:(EMError *)aError;
71 
80 
89 
97 - (void)userDidForbidByServer;
98 
114 - (void)userAccountDidForcedToLogout:(EMError *)aError;
115 
123 - (void)tokenWillExpire:(int)aErrorCode;
124 
132 - (void)tokenDidExpire:(int)aErrorCode;
133 
134 #pragma mark - Deprecated methods
135 
155 - (void)didConnectionStateChanged:(EMConnectionState)aConnectionState __deprecated_msg("Use -connectionStateDidChange:");
156 
168 - (void)didAutoLoginWithError:(EMError *)aError __deprecated_msg("Use -autoLoginDidCompleteWithError:");
169 
177 - (void)didLoginFromOtherDevice __deprecated_msg("Use -userAccountDidLoginFromOtherDevice");
178 
186 - (void)didRemovedFromServer __deprecated_msg("Use -userAccountDidRemoveFromServer");
187 
188 @end
Definition: EMError.h:27
Definition: EMClientDelegate.h:38
"Use -userAccountDidLoginFromOtherDevice" __deprecated_msg()
void userAccountDidRemoveFromServer()
void userAccountDidLoginFromOtherDevice()