Skip to content

@capgo/capacitor-privacy-screen

Block Android screenshots and hide sensitive UI in the iOS app switcher snapshot.

Enable privacy protection by default so support PINs, health data, and internal dashboards do not appear in screenshots, screen recordings, or the iOS task switcher preview. Temporarily disable() only for flows that must be capturable, then enable() again.

Android can apply secure window flags and dim overlays. iOS obscures content during app switcher snapshots. Web keeps an in memory flag for API parity only.

PlatformSupportNotes
iOSYesApp switcher snapshot protection
AndroidYesSecure surface, screenshot and recording blocking options
WebAPI parityIn memory enabled flag only
  • enable - Enables the privacy screen.
  • disable - Disables the privacy screen.
  • isEnabled - Returns the current enabled state.
MethodDescription
enableEnables the privacy screen.
disableDisables the privacy screen.
isEnabledReturns the current enabled state.
getPluginVersionReturns the native implementation version marker.

This reference is synced from src/definitions.ts in capacitor-privacy-screen.

Keep going from @capgo/capacitor-privacy-screen

Section titled “Keep going from @capgo/capacitor-privacy-screen”

If you are using @capgo/capacitor-privacy-screen to plan security and compliance, connect it with Using @capgo/capacitor-privacy-screen for the native capability in Using @capgo/capacitor-privacy-screen, Encryption for the implementation detail in Encryption, Compliance for the implementation detail in Compliance, Capgo Security Scanner for the product workflow in Capgo Security Scanner, and Capgo Security for the product workflow in Capgo Security.