public enum ScanMode extends Enum<ScanMode>
Enum Constant and Description |
---|
NO_SCAN
Equivalent to scan interval of zero.
|
SCAN_AT_FIXED_INTERVAL
Trigger continuous scan at given interval.
|
SCAN_AT_FIXED_INTERVAL_WITH_PAUSE_AFTER_WRITE
Trigger continuous scan at given interval but introduce a pause after a write
operation to allow the device time to process data without having to respond
to further enumeration requests.
|
Modifier and Type | Method and Description |
---|---|
static ScanMode |
valueOf(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 NO_SCAN
public static final ScanMode SCAN_AT_FIXED_INTERVAL
public static final ScanMode SCAN_AT_FIXED_INTERVAL_WITH_PAUSE_AFTER_WRITE
public static ScanMode[] values()
for (ScanMode c : ScanMode.values()) System.out.println(c);
public static ScanMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2018 Bitcoin Solutions Ltd. All rights reserved.