No Screenshot
CodingwithRK
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_SECUREon 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
ScreenProtectionStatusDTO
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 attemptedScreenRecordingStarted— fires when screen recording beginsScreenRecordingStopped— fires when screen recording ends