setDeviceDiscoveryListener method

  1. @override
Stream<List<MoveScanResult>> setDeviceDiscoveryListener()
override

Device listener fired on device scans during trips.

Implementation

@override
Stream<List<MoveScanResult>> setDeviceDiscoveryListener() async* {
  yield* deviceDiscoveryChannel
      .receiveBroadcastStream()
      .asyncMap<List<MoveScanResult>>((results) {
    var moveScanResults = MoveScanResult.fromNative(results);
    return moveScanResults;
  });
}