Package ai.nexconn.call.api
Enum Class NCCallState
- All Implemented Interfaces:
Serializable,Comparable<NCCallState>,Constable
Current call session state. Use it together with
NCCallUserState to observe detailed
invitation and ringing states.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic NCCallStategetCallSessionStatus(int code) Resolves the call state from its numeric value.intgetValue()Returns the numeric value of the call state.static NCCallStateReturns the enum constant of this class with the specified name.static NCCallState[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
Invalid state. -
IDLE
The current call is idle. -
CALLING
The current call is being initiated. -
CONNECTING
The current call is connecting. -
ON_CALL
The current call is ongoing. -
ENDED
The current call has ended. -
ERROR
The current call is in an error state.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()Returns the numeric value of the call state. -
getCallSessionStatus
Resolves the call state from its numeric value.- Parameters:
code- state value- Returns:
- the matching state, or
NONEfor unknown values
-