mirror of
https://gitee.com/shuto/cordova-plugin-camera.git
synced 2025-04-22 20:56:22 +08:00
CB-12086 Regenerate README.md from template
This commit is contained in:
parent
cc48945f37
commit
c9e6a9a38a
10
README.md
10
README.md
@ -76,21 +76,21 @@ Documentation consists of template and API docs produced from the plugin JS code
|
|||||||
|
|
||||||
### iOS Quirks
|
### iOS Quirks
|
||||||
|
|
||||||
Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` and `NSPhotoLibraryUsageDescriptionentry` in the info.plist.
|
Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` and `NSPhotoLibraryUsageDescription` in the info.plist.
|
||||||
|
|
||||||
- `NSCameraUsageDescription` describes the reason that the app accesses the user’s camera.
|
- `NSCameraUsageDescription` describes the reason that the app accesses the user’s camera.
|
||||||
- `NSPhotoLibraryUsageDescriptionentry` describes the reason the app accesses the user's photo library.
|
- `NSPhotoLibraryUsageDescription` describes the reason the app accesses the user's photo library.
|
||||||
|
|
||||||
When the system prompts the user to allow access, this string is displayed as part of the dialog box.
|
When the system prompts the user to allow access, this string is displayed as part of the dialog box.
|
||||||
|
|
||||||
To add this entry you can pass the following variables on plugin install.
|
To add this entry you can pass the following variables on plugin install.
|
||||||
|
|
||||||
- `CAMERA_USAGE_DESCRIPTION` for `NSCameraUsageDescription`
|
- `CAMERA_USAGE_DESCRIPTION` for `NSCameraUsageDescription`
|
||||||
- `PHOTOLIBRARY_USAGE_DESCRIPTION` for `NSPhotoLibraryUsageDescriptionentry`
|
- `PHOTOLIBRARY_USAGE_DESCRIPTION` for `NSPhotoLibraryUsageDescription`
|
||||||
-
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="your usage message"
|
cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="your usage message" --variable PHOTOLIBRARY_USAGE_DESCRIPTION="your usage message"
|
||||||
|
|
||||||
If you don't pass the variable, the plugin will add an empty string as value.
|
If you don't pass the variable, the plugin will add an empty string as value.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user