initializeAndCheckScanning method
Initialize scanning API and check required permissions.
For Android, it will check whether Bluetooth is enabled, allowed to access location services and check whether location services is enabled. For iOS, it will check whether Bluetooth is enabled, requestWhenInUse or requestAlways location services and check whether location services is enabled.
Implementation
@override
Future<bool> initializeAndCheckScanning() async => (await _channel.invokeMethod<bool>('initializeAndCheckScanning')) ?? false;