LEScanOptionsBuilder.acceptAllAdvertisements constructor

LEScanOptionsBuilder.acceptAllAdvertisements({
  1. bool keepRepeatedDevices = false,
})

Tell the browser to just accept all device advertisements.

Normally scans will discard the second and subsequent advertisements from a single device to save power. If you need to receive them, set keepRepeatedDevices to true. Note that setting keepRepeatedDevices to false doesn't guarantee you won’t get redundant events; It just allows the UA to save power by omitting them.

Implementation

LEScanOptionsBuilder.acceptAllAdvertisements(
    {final bool keepRepeatedDevices = false})
    : _acceptAllAdvertisements = true,
      _keepRepeatedDevices = keepRepeatedDevices,
      _requestFilters = [];