public enum NexmoConnectionState extends java.lang.Enum<NexmoConnectionState>
NexmoConnectionListener
related to NexmoClient.setConnectionListener(NexmoConnectionListener).| Enum Constant and Description |
|---|
CONNECT_ERROR
Connection error.
|
CONNECT_TIMEOUT
Connection timeout.
|
CONNECTED
User has been connected.
|
CONNECTING
User is connecting.
|
DISCONNECTED
NexmoUser has been disconnected.
|
RECONNECT_ERROR
Reconnect error.
|
RECONNECTED
User is reconnected.
|
RECONNECTING
User is reconnecting.
|
| Modifier and Type | Method and Description |
|---|---|
static NexmoConnectionState |
fromString(java.lang.String id) |
static NexmoConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NexmoConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NexmoConnectionState CONNECTED
public static final NexmoConnectionState DISCONNECTED
NexmoClient.logout().public static final NexmoConnectionState RECONNECTED
public static final NexmoConnectionState CONNECTING
public static final NexmoConnectionState RECONNECTING
public static final NexmoConnectionState CONNECT_TIMEOUT
public static final NexmoConnectionState CONNECT_ERROR
public static final NexmoConnectionState RECONNECT_ERROR
public static NexmoConnectionState[] values()
for (NexmoConnectionState c : NexmoConnectionState.values()) System.out.println(c);
public static NexmoConnectionState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static NexmoConnectionState fromString(java.lang.String id)