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 CONNECTEDTheCallis connected.CONNECTINGTheCallwas created or was accepted and is in the process of connecting.DISCONNECTEDTheCallwas disconnected, either due to a disconnect or an error.RECONNECTINGTheCallis reconnecting.RINGINGTheCallis ringing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Call.StatevalueOf(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
TheCallwas created or was accepted and is in the process of connecting.
-
RINGING
public static final Call.State RINGING
TheCallis ringing.
-
CONNECTED
public static final Call.State CONNECTED
TheCallis connected.
-
RECONNECTING
public static final Call.State RECONNECTING
TheCallis reconnecting.
-
DISCONNECTED
public static final Call.State DISCONNECTED
TheCallwas 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
-
-