LEScanOptionsBuilder class

A builder for creating the scan options needed for FlutterWebBluetooth.requestLeScan. This is needed to tell the browser what devices should be found while scanning.

Constructors

LEScanOptionsBuilder(List<RequestFilterBuilder> requestFilters, {bool keepRepeatedDevices = false})
Tell the browser to only accept devices matching the requestFilters. A device has to only match one filter, so if you support multiple device types then you need to add a filter for each device type.
LEScanOptionsBuilder.acceptAllAdvertisements({bool keepRepeatedDevices = false})
Tell the browser to just accept all device advertisements.

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toRequestOptions() BluetoothLEScanOptions
Convert the input requests to a BluetoothLEScanOptions objected needed to start a Bluetooth LE scan.
toString() String
A string representation of this object.
inherited

Operators

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