preventAndroidScreenShot method

Future<void> preventAndroidScreenShot(
  1. bool value
)

It will prevent user to screenshot/screenrecord on Android by set window Flag to WindowManager.LayoutParams.FLAG_SECURE

Implementation

Future<void> preventAndroidScreenShot(bool value) {
  return _channel.invokeMethod("prevent_screenshot", value);
}