setScreenCaptureProtection method

  1. @override
Future<void> setScreenCaptureProtection(
  1. bool enabled
)
override

Blocks screenshots and screen recording of the app where supported (Android FLAG_SECURE); a no-op elsewhere, see VaultCapabilities.screenCaptureProtection.

Implementation

@override
Future<void> setScreenCaptureProtection(bool enabled) async =>
    screenCaptureProtected = enabled;