ConnectionStatus
Enum class represents the connection status.
Enum class represents the connection status.
Syntax:enum ConnectionStatus : Enum<ConnectionStatus>
Entries | Value | Description |
---|---|---|
NONE | none | Indicates that the connection status is not set |
CONNECTING | connecting | Indicates that the messaging connection is connecting. |
CONNECTED | connected | Indicates that the messaging connection is connected. |
REFUSED | refused | Indicates that the messaging connection is disconnected. |
DISCONNECTING | disconnecting | Indicates that the messaging connection is disconnecting. |
CLOSED | closed | Indicates that the messaging connection is closed. |
ERROR | error | Indicates that the messaging connection is in an error state. |
Companion Functions
fromValue
Converts a string to the corresponding ConnectionStatus.
Syntax:fun fromValue(value: String): ConnectionStatus?
Returns Value The ConnectionStatus corresponds to the given string value. null if no matching connection status is found.
Parameters
Parameters | Type | Description |
---|---|---|
value | String | The string represents the connection status. |
Updated about 1 month ago