ScanMode enum

Enumeration of BLE scan modes.

The values correspond to the scan modes provided by Android's BluetoothLeScanner. You can choose from three predefined scan modes:

  • lowPower (0): Balanced scanning, balancing power and latency.
  • balanced (1): Low power scanning to conserve battery.
  • lowLatency (2): Scan with highest duty cycle to discover devices faster.
Inheritance
Available extensions

Values

lowPower → const ScanMode

Balanced scanning, balancing power and latency.

const ScanMode(0)
balanced → const ScanMode

Low power scanning to conserve battery.

const ScanMode(1)
lowLatency → const ScanMode

Scan with highest duty cycle to discover devices faster.

const ScanMode(2)

Properties

hashCode → int
The hash code for this object.
no setterinherited
identifier → int
An identifier for the scan mode for use in interacting with the Android platform implementation of BluetoothLeScanner.
final
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<ScanMode>
A constant List of the values in this enum, in order of their declaration.