prohibit_screen

Disable screenshots and screen recordings, support iOS and Android.

Usage

Add prohibit_screen to your pubspec.yaml dependencies

class _MyAppState extends State<MyApp> {
  
  //禁止截屏
  screenshotOFF() {
    ProhibitScreen().screenshotOFF();
  }

  //允许截屏
  screenshotON() {
    ProhibitScreen().screenshotON();
  }
}