Chat SDK for Unity and Windows v1.2.1
Public Member Functions | List of all members
AgoraChat.IConnectionDelegate Interface Reference

Public Member Functions

void OnConnected ()
 
void OnDisconnected ()
 
void OnLoggedOtherDevice (string deviceName)
 
void OnRemovedFromServer ()
 
void OnForbidByServer ()
 
void OnChangedIMPwd ()
 
void OnLoginTooManyDevice ()
 
void OnKickedByOtherDevice ()
 
void OnAuthFailed ()
 
void OnTokenExpired ()
 
void OnTokenWillExpire ()
 
void OnAppActiveNumberReachLimitation ()
 

Detailed Description

The connection callback interface.

Member Function Documentation

◆ OnConnected()

void AgoraChat.IConnectionDelegate.OnConnected ( )

Occurs when the SDK successfully connects to the chat server.

◆ OnDisconnected()

void AgoraChat.IConnectionDelegate.OnDisconnected ( )

Occurs when the SDK disconnects from the chat server.

The SDK disconnects from the chat server when you log out of the app or a network interruption occurs.

◆ OnLoggedOtherDevice()

void AgoraChat.IConnectionDelegate.OnLoggedOtherDevice ( string  deviceName)

Occurs when the user logs in to another device with the current account.

Parameters
deviceNameThe name of another device.

◆ OnRemovedFromServer()

void AgoraChat.IConnectionDelegate.OnRemovedFromServer ( )

Occurs when the current user account is removed from the server.

◆ OnForbidByServer()

void AgoraChat.IConnectionDelegate.OnForbidByServer ( )

Occurs when the current user account is banned.

◆ OnChangedIMPwd()

void AgoraChat.IConnectionDelegate.OnChangedIMPwd ( )

Occurs when the user is forced to log out of the current account because the login password is changed.

◆ OnLoginTooManyDevice()

void AgoraChat.IConnectionDelegate.OnLoginTooManyDevice ( )

Occurs when the user is forced to log out of the current account because he or she reaches the maximum number of devices that the user can log in to with the current account.

◆ OnKickedByOtherDevice()

void AgoraChat.IConnectionDelegate.OnKickedByOtherDevice ( )

Occurs when the user is forced to log out of the current account from the current device due to login to another device.

◆ OnAuthFailed()

void AgoraChat.IConnectionDelegate.OnAuthFailed ( )

Occurs when the user is forced to log out of the current account due to an authentication failure.

◆ OnTokenExpired()

void AgoraChat.IConnectionDelegate.OnTokenExpired ( )

Occurs when the token has expired.

◆ OnTokenWillExpire()

void AgoraChat.IConnectionDelegate.OnTokenWillExpire ( )

Occurs when the token is about to expire.

◆ OnAppActiveNumberReachLimitation()

void AgoraChat.IConnectionDelegate.OnAppActiveNumberReachLimitation ( )

The number of active apps has reached the upper limit.