Enum Class TrackSwitchOffMode

java.lang.Object
java.lang.Enum<TrackSwitchOffMode>
com.twilio.video.TrackSwitchOffMode
All Implemented Interfaces:
Serializable, Comparable<TrackSwitchOffMode>, Constable

public enum TrackSwitchOffMode extends Enum<TrackSwitchOffMode>
TrackSwitchOffMode represents the possible modes of behavior of the Track switch-off mechanism.
  • Enum Constant Details

    • DISABLED

      public static final TrackSwitchOffMode DISABLED
      In this mode, Tracks are never switched off.
    • PREDICTED

      public static final TrackSwitchOffMode PREDICTED
      In this mode, Tracks are pro-actively switched off when network congestion is predicted by the bandwidth estimation mechanism.
    • DETECTED

      public static final TrackSwitchOffMode DETECTED
      In this mode, Tracks are switched off only when network congestion is detected.
  • Method Details

    • values

      public static TrackSwitchOffMode[] 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 TrackSwitchOffMode 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