BleScanMode

Enum class representing available scan modes for BLE scanning.

See also

(https://developer.android.com/reference/android/bluetooth/le/ScanSettings.Builder#setScanMode(int))

Entries

Link copied to clipboard

A special Bluetooth LE scan mode. Applications using this scan mode will passively listen for other scan results without starting BLE scans themselves.

Link copied to clipboard

Perform Bluetooth LE scan in low power mode. This is the default scan mode as it consumes the least power. This mode is enforced if the scanning application is not in foreground.

Link copied to clipboard

Perform Bluetooth LE scan in balanced power mode. Scan results are returned at a rate that provides a good trade-off between scan frequency and power consumption.

Link copied to clipboard

Scan using highest duty cycle. It's recommended to only use this mode when the application is running.

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
Link copied to clipboard
val value: Int

Native Android API value.

Functions

Link copied to clipboard

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.