Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor-community/privacy-screen

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor-community/privacy-screen - npm Package Compare versions

Comparing version 5.1.3 to 5.2.0

20

dist/docs.json

@@ -216,2 +216,22 @@ {

"type": "'center' | 'scaleToFill' | 'scaleAspectFit' | 'scaleAspectFill' | undefined"
},
{
"name": "preventScreenshots",
"tags": [
{
"text": "true",
"name": "default"
},
{
"text": "false",
"name": "example"
},
{
"text": "5.2.0",
"name": "since"
}
],
"docs": "Configure whether the plugin should prevent screenshots if enabled.\n\nOnly available for iOS.",
"complexTypes": [],
"type": "boolean | undefined"
}

@@ -218,0 +238,0 @@ ],

@@ -36,2 +36,12 @@ import type { PluginListenerHandle } from '@capacitor/core';

contentMode?: 'center' | 'scaleToFill' | 'scaleAspectFit' | 'scaleAspectFill';
/**
* Configure whether the plugin should prevent screenshots if enabled.
*
* Only available for iOS.
*
* @default true
* @example false
* @since 5.2.0
*/
preventScreenshots?: boolean;
};

@@ -38,0 +48,0 @@ }

2

package.json
{
"name": "@capacitor-community/privacy-screen",
"version": "5.1.3",
"version": "5.2.0",
"description": "Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.",

@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js",

@@ -51,7 +51,8 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>

| Prop | Type | Description | Default |
| ----------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| **`enable`** | <code>boolean</code> | Configure whether the plugin should be enabled from startup. Only available for Android and iOS. | <code>true</code> |
| **`imageName`** | <code>string</code> | Configure whether the plugin should display a custom image from assets instead of a default background gray for the privacy screen. Only available for iOS. | <code>""</code> |
| **`contentMode`** | <code>'center' \| 'scaleToFill' \| 'scaleAspectFit' \| 'scaleAspectFill'</code> | Configure the content mode of displayed image. Only available for iOS. | <code>"center"</code> |
| Prop | Type | Description | Default | Since |
| ------------------------ | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----- |
| **`enable`** | <code>boolean</code> | Configure whether the plugin should be enabled from startup. Only available for Android and iOS. | <code>true</code> | |
| **`imageName`** | <code>string</code> | Configure whether the plugin should display a custom image from assets instead of a default background gray for the privacy screen. Only available for iOS. | <code>""</code> | |
| **`contentMode`** | <code>'center' \| 'scaleToFill' \| 'scaleAspectFit' \| 'scaleAspectFill'</code> | Configure the content mode of displayed image. Only available for iOS. | <code>"center"</code> | |
| **`preventScreenshots`** | <code>boolean</code> | Configure whether the plugin should prevent screenshots if enabled. Only available for iOS. | <code>true</code> | 5.2.0 |

@@ -68,3 +69,4 @@ ### Examples

"imageName": "Splashscreen",
"contentMode": "scaleAspectFit"
"contentMode": "scaleAspectFit",
"preventScreenshots": false
}

@@ -88,2 +90,3 @@ }

contentMode: "scaleAspectFit",
preventScreenshots: false,
},

@@ -90,0 +93,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc