ScanFilter constructor

ScanFilter({
  1. String? deviceName,
  2. List<String>? serviceUuids,
  3. int? manufacturerId,
  4. Map<int, List<int>>? manufacturerData,
})

Constructs a ScanFilter instance with specified filter parameters.

You can specify one or more criteria that scanned devices must match. If all parameters are left null, the filter will not apply any restrictions.

deviceName filters devices based on their advertised name. serviceUuids filters devices based on their advertised service UUIDs. manufacturerId filters devices based on their manufacturer ID. manufacturerData filters devices based on their manufacturer-specific data.

Implementation

ScanFilter({
  this.deviceName,
  this.serviceUuids,
  this.manufacturerId,
  this.manufacturerData,
});