Enum Class Call.State

java.lang.Object
java.lang.Enum<Call.State>
com.twilio.voice.Call.State
All Implemented Interfaces:
Serializable, Comparable<Call.State>, Constable
Enclosing class:
Call

public static enum Call.State extends Enum<Call.State>
An enum describing the possible states of a Call.
  • Enum Constant Details

    • CONNECTING

      public static final Call.State CONNECTING
      The Call was created or was accepted and is in the process of connecting.
    • RINGING

      public static final Call.State RINGING
      The Call is ringing.
    • CONNECTED

      public static final Call.State CONNECTED
      The Call is connected.
    • RECONNECTING

      public static final Call.State RECONNECTING
      The Call is reconnecting.
    • DISCONNECTED

      public static final Call.State DISCONNECTED
      The Call was disconnected, either due to a disconnect or an error.
  • Method Details

    • values

      public static Call.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Call.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null