public enum ChannelNotAvailableReason extends java.lang.Enum<ChannelNotAvailableReason>
ChannelNotAvailableException
.Enum Constant and Description |
---|
ALL_CHANNELS_IN_USE
Could not get a channel because all channels have been individually
acquired.
|
ALL_CHANNELS_IN_USE_LEGACY
Could not get a channel because all channels are in use.
|
ANT_DISABLED_AIRPLANE_MODE_ON
Could not get a channel because ANT is currently disabled due to Airplane
Mode being on and ANT being Airplane Mode sensitive.
|
ANT_NOT_ENABLED
Could not get a channel because ANT is currently disabled due to ANT allowed
is switched off in the System Global Settings.
|
NETWORK_NOT_AVAILABLE
There are too many simultaneous networks in use, found a channel but could not use the
selected network.
|
NO_ADAPTERS_EXIST
There is no ANT adapter to request a channel from or the requested ANT
adapter has been removed.
|
NO_CHANNELS_MATCH_CRITERIA
Could not get a channel because no available channels have the required capabilities.
|
RELEASE_PROCESSING
Could not get a channel, but one with the required capabilities is currently releasing,
and an
AntChannelProvider.ACTION_CHANNEL_PROVIDER_STATE_CHANGED Intent will
be sent once it is available. |
SERVICE_INITIALIZING
The ANT Radio Service is still starting up.
|
UNKNOWN
The ANT Radio Service sent a reason code which is not defined in this version of the
API.
|
Modifier and Type | Method and Description |
---|---|
static ChannelNotAvailableReason |
create(int rawValue)
Creates a ChannelNotAvailableReason for the given raw value.
|
int |
getRawValue()
Returns the raw value of the channel not available reason.
|
static ChannelNotAvailableReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChannelNotAvailableReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelNotAvailableReason UNKNOWN
public static final ChannelNotAvailableReason SERVICE_INITIALIZING
AntChannelProvider.ACTION_CHANNEL_PROVIDER_STATE_CHANGED
Intent will be sent
once the service has finished initializing.public static final ChannelNotAvailableReason NO_ADAPTERS_EXIST
An ANT adapter is considered available if:
public static final ChannelNotAvailableReason ANT_DISABLED_AIRPLANE_MODE_ON
public static final ChannelNotAvailableReason ANT_NOT_ENABLED
com.dsi.ant.AntService#displayAntSettings(android.content.Context)
.public static final ChannelNotAvailableReason ALL_CHANNELS_IN_USE_LEGACY
public static final ChannelNotAvailableReason ALL_CHANNELS_IN_USE
ALL_CHANNELS_IN_USE_LEGACY
for the case that the
whole ANT adapter is in use by a legacy application.public static final ChannelNotAvailableReason NO_CHANNELS_MATCH_CRITERIA
public static final ChannelNotAvailableReason RELEASE_PROCESSING
AntChannelProvider.ACTION_CHANNEL_PROVIDER_STATE_CHANGED
Intent will
be sent once it is available.public static final ChannelNotAvailableReason NETWORK_NOT_AVAILABLE
public static ChannelNotAvailableReason[] values()
for (ChannelNotAvailableReason c : ChannelNotAvailableReason.values()) System.out.println(c);
public static ChannelNotAvailableReason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getRawValue()
public static ChannelNotAvailableReason create(int rawValue)
rawValue
- An integer value matching a reason in the enumerationCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.