requestSystemAlertWindowAndroid method

  1. @override
Future<void> requestSystemAlertWindowAndroid()
override

Implementation

@override
Future<void> requestSystemAlertWindowAndroid() async {
  if (Platform.isAndroid) {
    try {
      await methodChannel.invokeMethod('requestSystemAlertWindow');
    } on PlatformException catch (e) {
      log("Error requestSystemAlertWindow: ${e.message}");
      rethrow;
    }
  }
}