Package com.dsi.ant

Enum Class AntService.Component

java.lang.Object
java.lang.Enum<AntService.Component>
com.dsi.ant.AntService.Component
All Implemented Interfaces:
Serializable, Comparable<AntService.Component>, Constable
Enclosing class:
AntService

public static enum AntService.Component extends Enum<AntService.Component>
Used internally by the API. All the possible components that AntService can retrieve from the ANT Radio Service.
Since:
4.0
  • Enum Constant Details

    • INVALID

      public static final AntService.Component INVALID
      The Component if the received component from ANT Radio Service is not supported in this version of the API.
      Since:
      4.0
    • CHANNEL_PROVIDER

      public static final AntService.Component CHANNEL_PROVIDER
      Responsible for providing ANT channels to applications.
      Since:
      4.0
    • ADAPTER_PROVIDER

      public static final AntService.Component ADAPTER_PROVIDER
      Responsible for providing hardware information to applications.
      Since:
      4.7.2
  • Method Details

    • values

      public static AntService.Component[] 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 AntService.Component 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
    • getRawValue

      public int getRawValue()
      Returns the raw value of this Component. Used internally by the API to specify which component to retrieve.
      Since:
      4.0
    • create

      public static AntService.Component create(int rawValue)
      Used internally by the API to create a Component from a raw value received from ANT Radio Service. Applications must use the methods provided in AntService such as AntService.getChannelProvider() to retrieve components.
      Since:
      4.0