BluetoothScanFilter class
The js object for Bluetooth scan filters.
At least one of the filter must be set, the rest can be left
undefined
.
See:
- Annotations
-
- @JS()
- @anonymous
Constructors
-
BluetoothScanFilter({List<
String> ? services, String? name, String? namePrefix, List<BluetoothManufacturerDataFilter> ? manufacturerData, List<BluetoothServiceDataFilter> ? serviceData}) -
The constructor of the request filter.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
manufacturerData
→ List<
BluetoothManufacturerDataFilter> ? -
A List of
BluetoothManufacturerDataFilter
s for what the manufacture data of the device should match before it shows up in the available devices list. Note that if you set multiple manufacturer data filters then a single device must match all of them.no setter - name → String?
-
The name of the device. The name must be the exact same for the device
to be allowed.
no setter
- namePrefix → String?
-
A name prefix. The name of the device must
have the same prefix. For example: a device with the name "ABCDEF" will
be allowed with the prefix "ABC" and not with the prefix "DEF".
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceData
→ List<
BluetoothServiceDataFilter> ? -
A List of
BluetoothServiceDataFilter
s for the services that the device should support.no setter -
services
→ List<
String> ? -
A list of UUIDS (should be lower case) of the services that the device
must have. A device is only allowed if it has all the services.
no setter
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