# capacitor-privacy-screen

> Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.

Latest version **1.0.0** (published 2021-01-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install capacitor-privacy-screen
pnpm add capacitor-privacy-screen
yarn add capacitor-privacy-screen
bun add capacitor-privacy-screen
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-01-16 |
| First published | 2021-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 24.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 103 |
| Author | Robin Genz |
| Maintainers | robingenz |
| Keywords | capacitor, plugin, native |

## Links

- npm: https://www.npmjs.com/package/capacitor-privacy-screen
- Repository: https://github.com/robingenz/capacitor-privacy-screen
- Homepage: https://github.com/robingenz/capacitor-privacy-screen#readme
- Issues: https://github.com/robingenz/capacitor-privacy-screen/issues
- npm.io page: https://npm.io/package/capacitor-privacy-screen

## Recent versions

- 1.0.0 (latest) — 2021-01-16

## README

# capacitor-privacy-screen

⚡️ Capacitor plugin that protects your app from displaying a screenshot in [Recents screen](https://developer.android.com/guide/components/activities/recents)/[App Switcher](https://support.apple.com/en-us/HT202070).

## Installation

```
npm install capacitor-privacy-screen
npx cap sync
```

On **iOS**, no further steps are needed.

On **Android**, register the plugin in your main activity:

```java
import dev.robingenz.capacitor.privacyscreen.PrivacyScreen;

public class MainActivity extends BridgeActivity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Initializes the Bridge
    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
      // Additional plugins you've installed go here
      // Ex: add(TotallyAwesomePlugin.class);
      add(PrivacyScreen.class);
    }});
  }
}
```

## Configuration

No configuration required for this plugin.

## Usage

The plugin only needs to be installed.

---
_Source: https://npm.io/package/capacitor-privacy-screen · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
