stopDiscovery method

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

Stops scan for Bluetooth LE devices. Throw BTException if failed.

Implementation

@override
Future<bool> stopDiscovery() async {
  try {
    await methodChannel.invokeMethod("stopDiscovery");
    return true;
  } on PlatformException catch (e) {
    throw BTException.fromPlatform(e);
  }
}