BluetoothLEScan class
An object representing a running Bluetooth LE scan. This object can be retrieved using Bluetooth.requestLEScan. It will have a copy of the BluetoothLEScanOptions used for the original call.
It additionally has an extra active field that represents if the scan is still running.
Note: you need to keep a reference to this object if you want to be able to stop the Bluetooth LE Scan in the future using stop.
https://webbluetoothcg.github.io/web-bluetooth/scanning.html#bluetoothlescan
Constructors
- BluetoothLEScan.fromJSObject(Object _jsObject)
- Construct a new instance.
Properties
- acceptAllAdvertisements → bool
-
If this Bluetooth LE scan accepts all advertisements.
no setter
- active → bool
-
If this Bluetooth LE scan is (still) active. Meaning that it will generate
new
advertisementreceived
events.no setter -
filters
→ List<
BluetoothLEScanOptions> -
A list of filters that were used to start (request) this Bluetooth LE scan.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- keepRepeatedDevices → bool
-
If this Bluetooth LE scan should keep repeated devices or just discard them.
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
-
stop(
) → void - Stop the currently running Bluetooth LE scan.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited