requestOverlayPermission static method

Future<void> requestOverlayPermission()

Request overlay permission for floating window (Android only) This will open the system settings page for overlay permission

Implementation

static Future<void> requestOverlayPermission() async {
  if (Platform.isAndroid) {
    await engineStaticMethodChannel.invokeMethod('requestOverlayPermission');
    TTFLogger.i(_logTag, 'requestOverlayPermission called');
  }
}