Enum Class AntFsState

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

public enum AntFsState extends Enum<AntFsState>
Defines the states of ANTFS sessions.
  • Enum Constant Details

    • AUTHENTICATION

      public static final AntFsState AUTHENTICATION
      Authentication
    • AUTHENTICATION_REQUESTING_PAIRING

      public static final AntFsState AUTHENTICATION_REQUESTING_PAIRING
      Authentication: Requesting Pairing Pairing request is sent and we are now waiting for the response. This is the event to watch for if you need to notify the user to interact with the device you are trying to connect to.
    • TRANSPORT_IDLE

      public static final AntFsState TRANSPORT_IDLE
      Transport: Idle.
    • TRANSPORT_DOWNLOADING

      public static final AntFsState TRANSPORT_DOWNLOADING
      Transport: Downloading A download is in progress.
    • UNRECOGNIZED

      public static final AntFsState UNRECOGNIZED
      The value sent by the plugin service was unrecognized indicating an upgrade of the PCC may be required to handle the value.
  • Method Details

    • values

      public static AntFsState[] 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 AntFsState 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
    • getIntValue

      public int getIntValue()
      Convert enum to equivalent int value
      Returns:
      integer value equivalent
    • getValueFromInt

      public static AntFsState getValueFromInt(int intValue)
      Convert int to equivalent enum value
      Parameters:
      intValue - integer to convert
      Returns:
      enum value equivalent