@capacitor-community/privacy-screen
Advanced tools
Comparing version 5.1.3 to 5.2.0
@@ -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 @@ } |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47929
405
263