Package com.twilio.video
Enum Class TrackSwitchOffMode
- All Implemented Interfaces:
Serializable
,Comparable<TrackSwitchOffMode>
,Constable
TrackSwitchOffMode represents the possible modes of behavior of the Track switch-off mechanism.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIn this mode, Tracks are switched off only when network congestion is detected.In this mode, Tracks are never switched off.In this mode, Tracks are pro-actively switched off when network congestion is predicted by the bandwidth estimation mechanism. -
Method Summary
Modifier and TypeMethodDescriptionstatic TrackSwitchOffMode
Returns the enum constant of this class with the specified name.static TrackSwitchOffMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISABLED
In this mode, Tracks are never switched off. -
PREDICTED
In this mode, Tracks are pro-actively switched off when network congestion is predicted by the bandwidth estimation mechanism. -
DETECTED
In this mode, Tracks are switched off only when network congestion is detected.
-
-
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
-