Skip to content
pubscout

screen_capture_restrictions

2.0.2, released a year ago by cam-inc.dev

Restrict screen capture and recording on mobile and monitor events.

$ flutter pub add screen_capture_restrictions

What it does

Allows Flutter apps to block screen capture and recording, resulting in blacked-out media on mobile platforms. It also provides listeners to detect when screen captures or screen recordings occur.

AI-written summary of version 2.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to prevent users from recording or taking screenshots of sensitive screens.
  • You need to detect and monitor screen captures or recordings within your app.

Skip it when

  • You do not need native mobile screen restriction features.
  • You want to avoid requesting sensitive storage permissions like MANAGE_EXTERNAL_STORAGE on Android.

Strengths

  • Provides both restriction and detection capabilities for mobile platforms.
  • Migrated to Pigeon for type safety.

Weaknesses

  • Requires sensitive Android permissions for full detection functionality on certain SDK versions.
  • Known delays in callbacks on specific Android versions.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Requires requesting appropriate storage permissions in AndroidManifest.xml depending on the Android SDK version.

await ScreenCaptureRestrictions.enableSecure();
await ScreenCaptureRestrictions.disableSecure();

Alternatives

Packages that do the same job and could replace screen_capture_restrictions.