startScan method

  1. @override
Future<bool> startScan()
override

Start scanning for beacons

Implementation

@override
Future<bool> startScan() async {
  try {
    final bool? result = await methodChannel.invokeMethod<bool>('startScan');
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint("Error starting scan: ${e.message}");
    return false;
  }
}