@capacitor-community/tap-jacking
v6.0.0
Published
Capacitor Plugin to prevent tap jacking in Android
Downloads
11,479
Maintainers
Readme
This plugin prevents tap jacking by calling setFilterTouchesWhenObscured(true)
(Android 11 and below) or setHideOverlayWindows
(Android 12+) as described in the Android Developer Documentation.
On iOS and web this call does nothing.
Install
npm install @capacitor-community/tap-jacking
npx cap sync
Usage
import { TapJacking } from '@capacitor-community/tap-jacking';
...
await TapJacking.preventOverlays();
API
preventOverlays()
preventOverlays() => Promise<void>
enableOverlays()
enableOverlays() => Promise<void>