screenshot_detector library

Classes

ProtectedWidget
Per-widget protection helper for sensitive UI components.
ScreenContext
Context for the current app route/screen.
ScreenshotDetector
SecurityAlertConfig
SecurityEvent
A normalized security event with metadata.
SecurityWatermark
Adds a dynamic watermark layer over child.
WatermarkConfig
Configuration for watermark content and styling.

Enums

ScreenProtectionMode
Protection mode used while screen recording is active or suspected.
SecurityAlertMode
Built-in alert behavior for UI notifications.
SecurityEventType
Types of security-relevant events reported by ScreenshotDetector.
WatermarkTemplate
Visual templates supported by SecurityWatermark.

Typedefs

SecurityEventCallback = FutureOr<void> Function(SecurityEvent event)
SecurityEventDispatcher = FutureOr<void> Function(SecurityEvent event)
SecurityEventRule = bool Function(SecurityEvent event)
SecurityUiHandler = FutureOr<void> Function(BuildContext context, SecurityEvent event, String message)
WatermarkTextBuilder = String Function(DateTime now)