Package com.dsi.ant.plugins.antplus.pcc
Enum Class MultiDeviceSearch.RssiSupport
java.lang.Object
java.lang.Enum<MultiDeviceSearch.RssiSupport>
com.dsi.ant.plugins.antplus.pcc.MultiDeviceSearch.RssiSupport
- All Implemented Interfaces:
Serializable
,Comparable<MultiDeviceSearch.RssiSupport>
,Constable
- Enclosing class:
- MultiDeviceSearch
Values representing whether rssi data is available for the current multi search.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRssi data is available and will be reported.Rssi data is unavailable, the search will only report new devices.An old plugin service is in use, so it is unknown whether rssi is supported or not. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MultiDeviceSearch.RssiSupport[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AVAILABLE
Rssi data is available and will be reported. -
UNAVAILABLE
Rssi data is unavailable, the search will only report new devices. -
UNKNOWN_OLDSERVICE
An old plugin service is in use, so it is unknown whether rssi is supported or not. In this case if rssi is not supported there will be no callbacks to onRssiUpdate. If an app needs to determine this they should wait for a short timeout after the first call to onDeviceFound, since if rssi is supported this function will be followed almost immediately by a call to onRssiUpdate for that device.
-
-
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
-