ScanMode

Scan mode, which trades scanning latency for power consumption.

The scan mode is ignored before Android 5. From Android 9, while the app is not visible and has no foreground service, Android lowers BALANCED and LOW_LATENCY scans to LOW_POWER or below.

See also

Entries

Link copied to clipboard

Scans in short windows with long breaks in between. Uses the least power, but devices are found the slowest.

Link copied to clipboard

A balance between scanning latency and power consumption.

Link copied to clipboard

Scans with the highest duty cycle. Devices are found the fastest, but it uses the most power.

Link copied to clipboard

Doesn't scan on its own, but receives results when other apps are scanning.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): ScanMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.