disableScreenshotBlocking method

Future<bool> disableScreenshotBlocking()

Disables screenshot blocking.

Implementation

Future<bool> disableScreenshotBlocking() async {
  if (kIsWeb) {
    return false;
  }

  try {
    if (Platform.isAndroid) {
      const platform = MethodChannel('pin_plus_keyboard/security');
      await platform.invokeMethod('disableScreenshotBlocking');
      return true;
    }
  } catch (e) {
    debugPrint('SecurityService: Error disabling screenshot blocking: $e');
  }
  return false;
}