public enum ScanFailure extends java.lang.Enum<ScanFailure>
Enum Constant and Description |
---|
ALREADY_STARTED
Failed to start scan as BLE scan with the same settings is already started by the app.
|
APPLICATION_REGISTRATION_FAILED
Failed to start scan as app cannot be registered.
|
FEATURE_UNSUPPORTED
Failed to start power optimized scan as this feature is not supported.
|
INTERNAL_ERROR
Failed to start scan due an internal error
|
OUT_OF_HARDWARE_RESOURCES
Failed to start scan as it is out of hardware resources.
|
SCANNING_TOO_FREQUENTLY
Failed to start scan as application tries to scan too frequently.
|
UNKNOWN |
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
static @NotNull ScanFailure |
fromValue(int value) |
static ScanFailure |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScanFailure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScanFailure ALREADY_STARTED
public static final ScanFailure APPLICATION_REGISTRATION_FAILED
public static final ScanFailure INTERNAL_ERROR
public static final ScanFailure FEATURE_UNSUPPORTED
public static final ScanFailure OUT_OF_HARDWARE_RESOURCES
public static final ScanFailure SCANNING_TOO_FREQUENTLY
public static final ScanFailure UNKNOWN
public static ScanFailure[] values()
for (ScanFailure c : ScanFailure.values()) System.out.println(c);
public static ScanFailure 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 null@NotNull public static @NotNull ScanFailure fromValue(int value)