Package com.twilio.voice
Enum Class PreflightTest.State
- All Implemented Interfaces:
Serializable
,Comparable<PreflightTest.State>
,Constable
- Enclosing class:
- PreflightTest
An enum describing the possible states of PreflightTest.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription`Completed` state - Preflight test completed successfully.`Connected` state - Preflight test connected to Twilio backend and test call in progress`Connecting` state - Preflight test attempting to connect`Failed` state - Preflight test failed because of an error, a connection failure, test call failure, or the test was stopped before it could complete. -
Method Summary
Modifier and TypeMethodDescriptionstatic PreflightTest.State
Returns the enum constant of this class with the specified name.static PreflightTest.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTING
`Connecting` state - Preflight test attempting to connect -
CONNECTED
`Connected` state - Preflight test connected to Twilio backend and test call in progress -
COMPLETED
`Completed` state - Preflight test completed successfully. -
FAILED
`Failed` state - Preflight test failed because of an error, a connection failure, test call failure, or the test was stopped before it could complete.
-
-
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
-