Enum Class NCCallState

java.lang.Object
java.lang.Enum<NCCallState>
ai.nexconn.call.api.NCCallState
All Implemented Interfaces:
Serializable, Comparable<NCCallState>, Constable

public enum NCCallState extends Enum<NCCallState>
Current call session state. Use it together with NCCallUserState to observe detailed invitation and ringing states.
  • Enum Constant Details

    • NONE

      public static final NCCallState NONE
      Invalid state.
    • IDLE

      public static final NCCallState IDLE
      The current call is idle.
    • CALLING

      public static final NCCallState CALLING
      The current call is being initiated.
    • CONNECTING

      public static final NCCallState CONNECTING
      The current call is connecting.
    • ON_CALL

      public static final NCCallState ON_CALL
      The current call is ongoing.
    • ENDED

      public static final NCCallState ENDED
      The current call has ended.
    • ERROR

      public static final NCCallState ERROR
      The current call is in an error state.
  • Method Details

    • values

      public static NCCallState[] 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 NCCallState 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
    • getValue

      public int getValue()
      Returns the numeric value of the call state.
    • getCallSessionStatus

      public static NCCallState getCallSessionStatus(int code)
      Resolves the call state from its numeric value.
      Parameters:
      code - state value
      Returns:
      the matching state, or NONE for unknown values