public enum ScanningMode extends java.lang.Enum<ScanningMode>
Enum Constant and Description |
---|
HIGH
High scanning mode.
|
LOW
Low scanning mode.
|
NORMAL
Normal scanning mode.
|
VERY_HIGH
Very high scanning mode.
|
Modifier and Type | Method and Description |
---|---|
long |
getBackgroundScanPeriod()
Gets background scan period in milliseconds.
|
long |
getBackgroundWaitTime()
Gets background wait time in milliseconds.
|
long |
getForegroundScanPeriod()
Gets foreground scan period in milliseconds.
|
long |
getForegroundWaitTime()
Gets foreground wait time in milliseconds.
|
static ScanningMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScanningMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScanningMode VERY_HIGH
public static final ScanningMode HIGH
public static final ScanningMode NORMAL
public static final ScanningMode LOW
public static ScanningMode[] values()
for (ScanningMode c : ScanningMode.values()) System.out.println(c);
public static ScanningMode 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 long getForegroundScanPeriod()
public long getForegroundWaitTime()
public long getBackgroundScanPeriod()
public long getBackgroundWaitTime()