Enum ConnectionStatus
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum ConnectionStatus extends Enum<ConnectionStatus>
Connection status enum.
Represents the connection status between the SDK and the server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConnectionStatus.Companion
-
Enum Constant Summary
Enum Constants Enum Constant Description NETWORK_UNAVAILABLENetwork unavailable
CONNECTEDConnected
CONNECTINGConnecting
UNCONNECTEDDisconnected
KICKED_OFFLINE_BY_OTHER_CLIENTKicked offline by another client
TOKEN_INCORRECTToken is invalid
CONN_USER_BLOCKEDUser blocked by admin
SIGNED_OUTSigned out
SUSPENDEDConnection suspended, SDK will auto reconnect when possible
TIMEOUTConnection timeout, SDK will not auto reconnect, user needs to call connectWithToken manually
PROXY_UNAVAILABLEProxy unavailable, SDK will not auto reconnect, user needs to check proxy availability
USER_ABANDONUser account has been cancelled
-
Method Summary
Modifier and Type Method Description final ConnectionStatusvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<ConnectionStatus>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetValue()-
-
Method Detail
-
valueOf
final ConnectionStatus valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Parameters:
value- Integer value of the status
-
values
final Array<ConnectionStatus> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getValue
final Integer getValue()
-
-
-
-