screen_protection library

Screen privacy only: app switcher cover, screenshot blocking (whole app or per screen), cover while recording, tapjacking protection and screenshot detection.

import 'package:app_armor/screen_protection.dart';

await ArmorScreenProtection.start(const PrivacyConfig(
  blockScreenshots: true,
  platforms: {ArmorPlatform.android}, // optional: Android only
));

// Or protect a single screen:
ArmorSecureScreen(child: PaymentScreen())

Classes

ArmorNative
Talks to AppArmor's Android and iOS code.
ArmorScreenProtection
Screen privacy on its own: app switcher cover, screenshot blocking, cover while recording, tapjacking protection and screenshot detection, without runtime checks or the rest of AppArmor.
ArmorSecureScreen
Blocks screenshots and screen recording while this widget is shown (Android FLAG_SECURE; iOS covers the screen while it is being recorded).
PrivacyConfig
Screen privacy options. All are handled natively by AppArmor.

Enums

ArmorPlatform
A platform AppArmor's protection can run on.
ArmorThreat
Every threat AppArmor can report.