@capacitor-community/privacy-screen
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -196,2 +196,22 @@ { | ||
"type": "string | undefined" | ||
}, | ||
{ | ||
"name": "contentMode", | ||
"tags": [ | ||
{ | ||
"text": "\"center\"", | ||
"name": "default" | ||
}, | ||
{ | ||
"text": "\"scaleAspectFit\"", | ||
"name": "example" | ||
}, | ||
{ | ||
"text": "https ://developer.apple.com/documentation/uikit/uiview/1622619-contentmode", | ||
"name": "see" | ||
} | ||
], | ||
"docs": "Configure the content mode of displayed image.\n\nOnly available for iOS.", | ||
"complexTypes": [], | ||
"type": "'center' | 'scaleToFill' | 'scaleAspectFit' | 'scaleAspectFill' | undefined" | ||
} | ||
@@ -198,0 +218,0 @@ ], |
@@ -26,2 +26,12 @@ import type { PluginListenerHandle } from '@capacitor/core'; | ||
imageName?: string; | ||
/** | ||
* Configure the content mode of displayed image. | ||
* | ||
* Only available for iOS. | ||
* | ||
* @default "center" | ||
* @example "scaleAspectFit" | ||
* @see https://developer.apple.com/documentation/uikit/uiview/1622619-contentmode | ||
*/ | ||
contentMode?: 'center' | 'scaleToFill' | 'scaleAspectFit' | 'scaleAspectFill'; | ||
}; | ||
@@ -28,0 +38,0 @@ } |
{ | ||
"name": "@capacitor-community/privacy-screen", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.", | ||
@@ -53,6 +53,6 @@ "main": "dist/plugin.cjs.js", | ||
"@capacitor/ios": "6.0.0", | ||
"@ionic/eslint-config": "0.3.0", | ||
"@ionic/eslint-config": "^0.4.0", | ||
"@ionic/prettier-config": "1.0.1", | ||
"@ionic/swiftlint-config": "1.1.2", | ||
"eslint": "7.32.0", | ||
"eslint": "^8.57.0", | ||
"prettier": "2.3.2", | ||
@@ -59,0 +59,0 @@ "prettier-plugin-java": "1.0.2", |
@@ -51,6 +51,7 @@ <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> | | ||
| 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> | | ||
@@ -66,3 +67,4 @@ ### Examples | ||
"enable": true, | ||
"imageName": "Splashscreen" | ||
"imageName": "Splashscreen", | ||
"contentMode": "scaleAspectFit" | ||
} | ||
@@ -85,2 +87,3 @@ } | ||
imageName: "Splashscreen", | ||
contentMode: "scaleAspectFit", | ||
}, | ||
@@ -87,0 +90,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
45833
375
260