PrivacyConfig class
Screen privacy options. All are handled natively by AppArmor.
Constructors
-
PrivacyConfig({bool hideInAppSwitcher = true, bool blockScreenshots = false, bool coverWhileRecording = false, bool preventTapjacking = true, bool detectScreenshots = true, Set<
ArmorPlatform> platforms = ArmorPlatform.all}) -
const
Properties
- blockScreenshots → bool
-
Blocks screenshots and screen recording in the whole app (Android
FLAG_SECURE; also hides it in the app switcher on every Android
version). iOS can't block screenshots: it covers the app while it is
being recorded instead. To protect only some screens, leave this off
and wrap them in
ArmorSecureScreen.final - coverWhileRecording → bool
-
iOS: covers the app with a blur while the screen is recorded,
mirrored or cast.
final
- detectScreenshots → bool
-
Reports ArmorThreat.screenshot (iOS, Android 14+) and
ArmorThreat.screenRecording (iOS) through the policy.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideInAppSwitcher → bool
-
The app switcher shows a blank card (Android 13+) or a blur (iOS)
instead of a snapshot of the current screen.
final
-
platforms
→ Set<
ArmorPlatform> -
Where screen privacy runs,
ArmorSecureScreenincluded. On other platforms none of the options above is applied.final - preventTapjacking → bool
-
Android: ignores touches while another app draws over this one, so
an overlay can't trick the user into tapping something. Screen filter
apps (blue-light, dimmer) also draw over apps, so their users can't
tap while one is on. Turn off if your users rely on them.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- off → const PrivacyConfig