prevent_app_screen 0.0.1 copy "prevent_app_screen: ^0.0.1" to clipboard
prevent_app_screen: ^0.0.1 copied to clipboard

A Flutter plugin to prevent screenshots and screen recordings on Android and iOS.

prevent_app_screen #

A Flutter plugin to prevent screenshots and screen recordings on Android and iOS.

Features #

  • Android: Prevents screenshots and hides app content in the recent apps switcher using FLAG_SECURE.
  • iOS: Prevents screenshots and screen recordings by using a secure UITextField layer trick.
  • iOS App Switcher: Automatically blurs the app content when it goes to the background.

Getting Started #

Add the dependency to your pubspec.yaml:

dependencies:
  prevent_app_screen: ^0.0.1

Usage #

final _preventAppScreenPlugin = PreventAppScreen();

// Enable protection
await _preventAppScreenPlugin.enableSecure();

// Disable protection
await _preventAppScreenPlugin.disableSecure();

Example #

Check the example directory for a full demonstration.

2
likes
0
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to prevent screenshots and screen recordings on Android and iOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on prevent_app_screen

Packages that implement prevent_app_screen