Package com.twilio.voice
Enum Call.State
- java.lang.Object
-
- java.lang.Enum<Call.State>
-
- com.twilio.voice.Call.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Call.State>
- Enclosing class:
- Call
public static enum Call.State extends java.lang.Enum<Call.State>
An enum describing the possible states of a Call.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTED
TheCall
is connected.CONNECTING
TheCall
was created or was accepted and is in the process of connecting.DISCONNECTED
TheCall
was disconnected, either due to a disconnect or an error.RECONNECTING
TheCall
is reconnecting.RINGING
TheCall
is ringing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Call.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Call.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTING
public static final Call.State CONNECTING
TheCall
was created or was accepted and is in the process of connecting.
-
RINGING
public static final Call.State RINGING
TheCall
is ringing.
-
CONNECTED
public static final Call.State CONNECTED
TheCall
is connected.
-
RECONNECTING
public static final Call.State RECONNECTING
TheCall
is reconnecting.
-
DISCONNECTED
public static final Call.State DISCONNECTED
TheCall
was disconnected, either due to a disconnect or an error.
-
-
Method Detail
-
values
public static Call.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Call.State c : Call.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Call.State valueOf(java.lang.String name)
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:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-