No Screenshot

CodingwithRK

AuthorCodingwithRKPlugin TypeCommunity PluginPriceFreeVersionv1.0.0LicenseMIT
NativePHP^3.0iOS13.0+Android21+PHP8.2+

Prevent screenshots, block screen recording, and provide global app protection during app-switching for sensitive data applications.

Features

  • Block screenshots (FLAG_SECURE on Android), detect on iOS
  • Block screen recording with black overlay on both platforms
  • Detect live recording status (iOS)
  • Global protection flag
  • Real-time status via ScreenProtectionStatus DTO

Installation

composer require codingwithrk/no-screenshot
php artisan native:plugin:register codingwithrk/no-screenshot

Compatibility

Platform Minimum Version
NativePHP ^3.0
iOS 13.0+
Android API 21+
PHP 8.2+

Events

  • ScreenshotAttempted — fires when a screenshot is attempted
  • ScreenRecordingStarted — fires when screen recording begins
  • ScreenRecordingStopped — fires when screen recording ends