public enum RequestAccessResult extends java.lang.Enum<RequestAccessResult>
Enum Constant and Description |
---|
ADAPTER_NOT_DETECTED
The Ant Radio Service has reported that there are not ANT adapters present to provide ANT channels.
|
ALREADY_SUBSCRIBED
This application is already actively granted access from a previous request.
|
BAD_PARAMS
Bad Parameters.
|
CHANNEL_NOT_AVAILABLE
The ANT Radio Service reports that no free channels are available.
|
DEPENDENCY_NOT_INSTALLED
Indicates a dependency was not installed.
|
DEVICE_ALREADY_IN_USE
For plugin device types which do not allow sharing devices this indicates the requested
device is already accessed by another application.
|
OTHER_FAILURE
Indicates there was a critical or unexpected error in the Plugins, check logcat output for details.
|
SEARCH_TIMEOUT
The search did not find the requested device before the timeout period.
|
SUCCESS
Access is granted and the device can now be used
|
UNRECOGNIZED
The value sent by the plugin service was unrecognized indicating an upgrade of the PCC may be required to handle the value.
|
USER_CANCELLED
The request was cancelled
|
Modifier and Type | Method and Description |
---|---|
int |
getIntValue()
Convert enum to equivalent int value
|
static RequestAccessResult |
getValueFromInt(int intValue)
Convert int to equivalent enum value
|
static RequestAccessResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RequestAccessResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestAccessResult SUCCESS
public static final RequestAccessResult USER_CANCELLED
public static final RequestAccessResult CHANNEL_NOT_AVAILABLE
public static final RequestAccessResult OTHER_FAILURE
public static final RequestAccessResult DEPENDENCY_NOT_INSTALLED
AntPluginPcc.getMissingDependencyName()
and AntPluginPcc.getMissingDependencyPackageName()
functions
can be used to determine which dependency is missing and prompt the user to install it.public static final RequestAccessResult DEVICE_ALREADY_IN_USE
public static final RequestAccessResult SEARCH_TIMEOUT
public static final RequestAccessResult ALREADY_SUBSCRIBED
public static final RequestAccessResult BAD_PARAMS
public static final RequestAccessResult ADAPTER_NOT_DETECTED
public static final RequestAccessResult UNRECOGNIZED
public static RequestAccessResult[] values()
for (RequestAccessResult c : RequestAccessResult.values()) System.out.println(c);
public static RequestAccessResult 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 getIntValue()
public static RequestAccessResult getValueFromInt(int intValue)
intValue
- integer to convertCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.