| Enum Constant and Description |
|---|
BALANCED
Perform Bluetooth LE scan in balanced power mode.
|
LOW_LATENCY
Scan using highest duty cycle.
|
LOW_POWER
Perform Bluetooth LE scan in low power mode.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static ScanMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScanMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScanMode LOW_POWER
public static final ScanMode BALANCED
public static final ScanMode LOW_LATENCY
public static ScanMode[] values()
for (ScanMode c : ScanMode.values()) System.out.println(c);
public static ScanMode 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 getCode()