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

outdated

a Flutter plugin that implements a feature to prevent users from taking screenshots or screen recordings of the user interface.

snapshot_guard #

snapshot_guard is a Flutter plugin that implements a feature to prevent users from taking screenshots or screen recordings of the user interface.

Android iOS
Support SDK 17+ iOS 12+

Install #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  snapshot_guard: <latest_version>

In your library add the following import:

import 'package:snapshot_guard/snapshot_guard.dart';

Usage #

To use the plugin, simply import the package in your Flutter project and use the provided SnapshotGuard.toggleGuard() method. This method should be called before building your Flutter app's user interface.

Example:

import 'package:snapshot_guard/snapshot_guard.dart';

void main() async {
  await SnapshotGuard.toggleGuard();
  // or 
  await SnapshotGuard.switchGuardStatus(true);
  runApp(MyApp());
}

to listen to Guard status changes use SnapshotGuard.onGuardStatusChanged

Platform Support #

SnapshotGuard currently supports iOS and Android.

Limitations #

Please note that SnapshotGuard does not guarantee 100% protection against screenshots or screen recordings. It is possible for determined users to bypass the screenshot prevention measures. This plugin is meant to provide a basic level of protection against casual screenshots or screen recordings.

5
likes
0
points
267
downloads

Publisher

unverified uploader

Weekly Downloads

a Flutter plugin that implements a feature to prevent users from taking screenshots or screen recordings of the user interface.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface, rxdart

More

Packages that depend on snapshot_guard

Packages that implement snapshot_guard