RequestOptions class
The js object for request options. This is used for Bluetooth.requestDevice.
Either filters or acceptAllDevices must have something meaningful set
in them, they can't be set at the same time.
If for example acceptAllDevices is true
and filters is not an empty
list. Then an Error will be thrown when trying to request devices.
- Annotations
-
- @JS()
- @anonymous
Constructors
-
RequestOptions({List<
BluetoothScanFilter> filters, List<BluetoothScanFilter> exclusionFilters, List optionalServices, List optionalManufacturerData, bool acceptAllDevices}) -
A constructor for new request options.
factory
Properties
- acceptAllDevices → bool
-
If all device can are allowed to to connect.
no setter
-
exclusionFilters
→ List<
BluetoothScanFilter> -
A device may not have enough distinct information. To solve this you may
add exclusionFilters. These are the same as the filters, if a
device matches ANY of these filters then it will not be available.
no setter
-
filters
→ List<
BluetoothScanFilter> -
A list of filters that the accepted device must meet.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
optionalManufacturerData
→ List<
int> -
A list of manufacturer codes that a device may or may not have.
no setter
-
optionalServices
→ List<
String> -
A list of service UUIDS that a device may have or may not have.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited