public enum ScanMode

  1. Object
  2. Enum<ScanMode>
  3. 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

OPPORTUNISTICPassive: only report advertisements other scans triggered.
LOW_POWERLow duty cycle scanning; large battery savings, slow discovery.
BALANCEDThe default balance between latency and power.
LOW_LATENCYContinuous 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

OPPORTUNISTIC
Passive: only report advertisements other scans triggered. Lowest power; Android only.

LOW_POWER

LOW_POWER
Low duty cycle scanning; large battery savings, slow discovery.

BALANCED

BALANCED
The default balance between latency and power.

LOW_LATENCY

LOW_LATENCY
Continuous scanning for the fastest discovery; highest power draw.

Method details

values

public static ScanMode[] values()

valueOf

public static ScanMode valueOf(String name)