This package has been deprecated

Author message:

This project has been renamed to @capacitor-community/privacy-screen. Install using @capacitor-community/privacy-screen instead.

capacitor-privacy-screen
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

capacitor-privacy-screen

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

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:

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.

Readme

Keywords

Package Sidebar

Install

npm i capacitor-privacy-screen

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

25.3 MB

Total Files

94

Last publish

Collaborators

  • robingenz