Enum 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.
    • 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 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 name
        java.lang.NullPointerException - if the argument is null