Enum Class ControlsMode

java.lang.Object
java.lang.Enum<ControlsMode>
com.dsi.ant.plugins.antplus.pcc.controls.defines.ControlsMode
All Implemented Interfaces:
Serializable, Comparable<ControlsMode>, Constable

public enum ControlsMode extends Enum<ControlsMode>
Controls profile modes (audio, video, generic)
  • Enum Constant Details

    • UNRECOGNIZED_MODE_PRESENT

      public static final ControlsMode UNRECOGNIZED_MODE_PRESENT
      The value sent by the plugin service was at least partially unrecognized indicating an upgrade of the PCC may be required to handle the value.
    • AUDIO_MODE

      public static final ControlsMode AUDIO_MODE
      Audio mode
    • VIDEO_MODE

      public static final ControlsMode VIDEO_MODE
      Video mode
    • GENERIC_MODE

      public static final ControlsMode GENERIC_MODE
      Generic mode
  • Method Details

    • values

      public static ControlsMode[] 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 ControlsMode 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
    • getLongValue

      public long getLongValue()
    • getRequestAccessModeValue

      public int getRequestAccessModeValue()
      Get the request access mode value that is compatible with pre-remote control plugin versions
      Returns:
      pre-remote control plugin version value.
    • getControlsModeFromLong

      public static ControlsMode getControlsModeFromLong(long longValue)
    • getControlsModesFromLong

      public static EnumSet<ControlsMode> getControlsModesFromLong(long longValue)
    • getControlsModeFromRequestAccessValue

      public static ControlsMode getControlsModeFromRequestAccessValue(int value)
    • getLongFromControlsModes

      public static long getLongFromControlsModes(EnumSet<ControlsMode> controlsModes)