HyphenateChatSDK  3.8.7
Instance Methods | List of all members
<EMClientDelegate> Protocol Reference

#import <EMClientDelegate.h>

Inheritance diagram for <EMClientDelegate>:

Instance Methods

(void) - connectionStateDidChange:
 
(void) - autoLoginDidCompleteWithError:
 
(void) - userAccountDidLoginFromOtherDevice
 
(void) - userAccountDidRemoveFromServer
 
(void) - userDidForbidByServer
 
(void) - userAccountDidForcedToLogout:
 
(void) - tokenWillExpire:
 
(void) - tokenDidExpire:
 
(void) - didConnectionStateChanged:
 
(void) - didAutoLoginWithError:
 
("Use -userAccountDidLoginFromOtherDevice") - __deprecated_msg
 
("Use -userAccountDidRemoveFromServer") - __deprecated_msg
 

Detailed Description

@abstract This protocol provides a number of utility classes callback

Method Documentation

◆ __deprecated_msg [1/2]

- ("Use -userAccountDidLoginFromOtherDevice") __deprecated_msg
optional

Will receive this callback when current account login from other device

◆ __deprecated_msg [2/2]

- ("Use -userAccountDidRemoveFromServer") __deprecated_msg
optional

Current login account will receive the callback is deleted from the server

◆ autoLoginDidCompleteWithError:

- (void) autoLoginDidCompleteWithError: (EMError *)  aError
optional

Invoked when auto login is completed

Parameters
aErrorError

◆ connectionStateDidChange:

- (void) connectionStateDidChange: (EMConnectionState)  aConnectionState
optional

Invoked when server connection state has changed

Parameters
aConnectionStateCurrent state

◆ didAutoLoginWithError:

- (void) didAutoLoginWithError: ("Use -autoLoginDidCompleteWithError:")  __deprecated_msg
optional

Callback Automatic login fails

Parameters
aErrorError

◆ didConnectionStateChanged:

- (void) didConnectionStateChanged: ("Use -connectionStateDidChange:")  __deprecated_msg
optional

Connection to the server status changes will receive the callback

calling the method causes:

  1. After successful login, the phone can not access
  2. After a successful login, network status change
Parameters
aConnectionStateCurrent state

◆ tokenDidExpire:

- (void) tokenDidExpire: (int)  aErrorCode
optional

token did expire (log in using agoraToken)

◆ tokenWillExpire:

- (void) tokenWillExpire: (int)  aErrorCode
optional

token will expire (log in using agoraToken)

◆ userAccountDidForcedToLogout:

- (void) userAccountDidForcedToLogout: (EMError *)  aError
optional

Delegate method will be invoked when current IM account is forced to logout with the following reasons:

  1. The password is modified
  2. Logged in too many devices
  3. User for forbidden
  4. Forced offline

◆ userAccountDidLoginFromOtherDevice

- (void) userAccountDidLoginFromOtherDevice
optional

Invoked when current IM account logged into another device

◆ userAccountDidRemoveFromServer

- (void) userAccountDidRemoveFromServer
optional

Invoked when current IM account is removed from server

◆ userDidForbidByServer

- (void) userDidForbidByServer
optional

Delegate method will be invoked when User is forbidden


The documentation for this protocol was generated from the following file: