startScan static method

Future<bool> startScan()

Start BLE scan for nearby beacon devices.

Platform emits scan results over scanStream. The scan will continue until stopScan is called.

Returns true if scanning started successfully, false otherwise.

Implementation

static Future<bool> startScan() async {
  final result = await _method.invokeMethod<bool>('startScan');
  return result ?? false;
}