screen_secure 1.0.2
screen_secure: ^1.0.2 copied to clipboard
A Flutter plugin for screen security features including screenshot and screen recording protection across Android and iOS platforms.
Changelog #
1.0.0 #
Added #
- Initial release of screen_secure plugin
- Screenshot blocking for Android using FLAG_SECURE
- Screen recording detection and blocking for iOS
- Cross-platform initialization with customizable options
- Dynamic enable/disable functionality for both features
- Real-time screen recording detection callbacks (iOS)
- Comprehensive error handling with custom exceptions
- Complete example app demonstrating all features
- Extensive documentation and API reference
Features #
- ✅ Android screenshot and screen recording protection
- ✅ iOS screen recording detection with overlay warnings
- ✅ One-line initialization:
ScreenSecure.init() - ✅ Runtime control of security features
- ✅ Professional error handling
- ✅ Platform-specific optimizations
Platform Support #
- Android API 16+
- iOS 11.0+
API Reference #
init()- Initialize with custom optionsenableScreenshotBlock()- Enable screenshot protectiondisableScreenshotBlock()- Disable screenshot protectionenableScreenRecordBlock()- Enable screen recording protectiondisableScreenRecordBlock()- Disable screen recording protectionisScreenRecording()- Check current recording status (iOS)getSecurityStatus()- Get comprehensive security statussetScreenRecordingCallback()- Set up real-time callbacks