6.0.0 • Published 1 year ago

@capacitor-community/tap-jacking v6.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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>

6.0.0

1 year ago

5.1.0

1 year ago

5.0.0

1 year ago