public enum ScanMode
- Object
- Enum<ScanMode>
- ScanMode
ImplementsComparable<ScanMode>
Power/latency trade-off of a BLE scan, mirroring Android’s scan modes.
Platforms without an equivalent control (iOS) treat this as a hint.
Enum constants
OPPORTUNISTIC | Passive: only report advertisements other scans triggered. |
LOW_POWER | Low duty cycle scanning; large battery savings, slow discovery. |
BALANCED | The default balance between latency and power. |
LOW_LATENCY | Continuous scanning for the fastest discovery; highest power draw. |
Methods
public static ScanMode[] values() | |
public static ScanMode valueOf(String name) |
Inherited methods
Enum constant details
OPPORTUNISTIC
OPPORTUNISTICPassive: only report advertisements other scans triggered. Lowest
power; Android only.
LOW_POWER
LOW_POWERLow duty cycle scanning; large battery savings, slow discovery.
BALANCED
BALANCEDThe default balance between latency and power.
LOW_LATENCY
LOW_LATENCYContinuous scanning for the fastest discovery; highest power draw.
Method details
values
public static ScanMode[] values()valueOf
public static ScanMode valueOf(String name)