enableScreenProtection method

Future<void> enableScreenProtection()

Enables screen protection (blocks screenshots and screen recording).

On Android, sets FLAG_SECURE — screenshots appear black and screen recordings show a blank/black screen.

On iOS, adds a secure text field overlay that obscures content in screenshots and screen recordings.

Implementation

Future<void> enableScreenProtection() {
  throw UnimplementedError(
      'enableScreenProtection() has not been implemented.');
}