mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-03-17 06:21:03 +08:00
CB-11165 removed peer dependency
This commit is contained in:
parent
68e18a97d1
commit
d4a55f20ec
15
README.md
15
README.md
@ -98,8 +98,10 @@ Documentation consists of template and API docs produced from the plugin JS code
|
|||||||
---
|
---
|
||||||
|
|
||||||
<a name="module_camera"></a>
|
<a name="module_camera"></a>
|
||||||
|
|
||||||
## camera
|
## camera
|
||||||
<a name="module_camera.getPicture"></a>
|
<a name="module_camera.getPicture"></a>
|
||||||
|
|
||||||
### camera.getPicture(successCallback, errorCallback, options)
|
### camera.getPicture(successCallback, errorCallback, options)
|
||||||
Takes a photo using the camera, or retrieves a photo from the device's
|
Takes a photo using the camera, or retrieves a photo from the device's
|
||||||
image gallery. The image is passed to the success callback as a
|
image gallery. The image is passed to the success callback as a
|
||||||
@ -167,6 +169,7 @@ More examples [here](#camera-getPicture-examples). Quirks [here](#camera-getPict
|
|||||||
navigator.camera.getPicture(cameraSuccess, cameraError, cameraOptions);
|
navigator.camera.getPicture(cameraSuccess, cameraError, cameraOptions);
|
||||||
```
|
```
|
||||||
<a name="module_camera.cleanup"></a>
|
<a name="module_camera.cleanup"></a>
|
||||||
|
|
||||||
### camera.cleanup()
|
### camera.cleanup()
|
||||||
Removes intermediate image files that are kept in temporary storage
|
Removes intermediate image files that are kept in temporary storage
|
||||||
after calling [`camera.getPicture`](#module_camera.getPicture). Applies only when the value of
|
after calling [`camera.getPicture`](#module_camera.getPicture). Applies only when the value of
|
||||||
@ -191,6 +194,7 @@ function onFail(message) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
<a name="module_camera.onError"></a>
|
<a name="module_camera.onError"></a>
|
||||||
|
|
||||||
### camera.onError : <code>function</code>
|
### camera.onError : <code>function</code>
|
||||||
Callback function that provides an error message.
|
Callback function that provides an error message.
|
||||||
|
|
||||||
@ -201,6 +205,7 @@ Callback function that provides an error message.
|
|||||||
| message | <code>string</code> | The message is provided by the device's native code. |
|
| message | <code>string</code> | The message is provided by the device's native code. |
|
||||||
|
|
||||||
<a name="module_camera.onSuccess"></a>
|
<a name="module_camera.onSuccess"></a>
|
||||||
|
|
||||||
### camera.onSuccess : <code>function</code>
|
### camera.onSuccess : <code>function</code>
|
||||||
Callback function that provides the image data.
|
Callback function that provides the image data.
|
||||||
|
|
||||||
@ -220,6 +225,7 @@ function cameraCallback(imageData) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
<a name="module_camera.CameraOptions"></a>
|
<a name="module_camera.CameraOptions"></a>
|
||||||
|
|
||||||
### camera.CameraOptions : <code>Object</code>
|
### camera.CameraOptions : <code>Object</code>
|
||||||
Optional parameters to customize the camera settings.
|
Optional parameters to customize the camera settings.
|
||||||
* [Quirks](#CameraOptions-quirks)
|
* [Quirks](#CameraOptions-quirks)
|
||||||
@ -245,8 +251,10 @@ Optional parameters to customize the camera settings.
|
|||||||
---
|
---
|
||||||
|
|
||||||
<a name="module_Camera"></a>
|
<a name="module_Camera"></a>
|
||||||
|
|
||||||
## Camera
|
## Camera
|
||||||
<a name="module_Camera.DestinationType"></a>
|
<a name="module_Camera.DestinationType"></a>
|
||||||
|
|
||||||
### Camera.DestinationType : <code>enum</code>
|
### Camera.DestinationType : <code>enum</code>
|
||||||
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
||||||
**Properties**
|
**Properties**
|
||||||
@ -258,6 +266,7 @@ Optional parameters to customize the camera settings.
|
|||||||
| NATIVE_URI | <code>number</code> | <code>2</code> | Return native uri (eg. asset-library://... for iOS) |
|
| NATIVE_URI | <code>number</code> | <code>2</code> | Return native uri (eg. asset-library://... for iOS) |
|
||||||
|
|
||||||
<a name="module_Camera.EncodingType"></a>
|
<a name="module_Camera.EncodingType"></a>
|
||||||
|
|
||||||
### Camera.EncodingType : <code>enum</code>
|
### Camera.EncodingType : <code>enum</code>
|
||||||
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
||||||
**Properties**
|
**Properties**
|
||||||
@ -268,6 +277,7 @@ Optional parameters to customize the camera settings.
|
|||||||
| PNG | <code>number</code> | <code>1</code> | Return PNG encoded image |
|
| PNG | <code>number</code> | <code>1</code> | Return PNG encoded image |
|
||||||
|
|
||||||
<a name="module_Camera.MediaType"></a>
|
<a name="module_Camera.MediaType"></a>
|
||||||
|
|
||||||
### Camera.MediaType : <code>enum</code>
|
### Camera.MediaType : <code>enum</code>
|
||||||
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
||||||
**Properties**
|
**Properties**
|
||||||
@ -279,6 +289,7 @@ Optional parameters to customize the camera settings.
|
|||||||
| ALLMEDIA | <code>number</code> | <code>2</code> | Allow selection from all media types |
|
| ALLMEDIA | <code>number</code> | <code>2</code> | Allow selection from all media types |
|
||||||
|
|
||||||
<a name="module_Camera.PictureSourceType"></a>
|
<a name="module_Camera.PictureSourceType"></a>
|
||||||
|
|
||||||
### Camera.PictureSourceType : <code>enum</code>
|
### Camera.PictureSourceType : <code>enum</code>
|
||||||
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
||||||
**Properties**
|
**Properties**
|
||||||
@ -290,6 +301,7 @@ Optional parameters to customize the camera settings.
|
|||||||
| SAVEDPHOTOALBUM | <code>number</code> | <code>2</code> | Choose image from picture library (same as PHOTOLIBRARY for Android) |
|
| SAVEDPHOTOALBUM | <code>number</code> | <code>2</code> | Choose image from picture library (same as PHOTOLIBRARY for Android) |
|
||||||
|
|
||||||
<a name="module_Camera.PopoverArrowDirection"></a>
|
<a name="module_Camera.PopoverArrowDirection"></a>
|
||||||
|
|
||||||
### Camera.PopoverArrowDirection : <code>enum</code>
|
### Camera.PopoverArrowDirection : <code>enum</code>
|
||||||
Matches iOS UIPopoverArrowDirection constants to specify arrow location on popover.
|
Matches iOS UIPopoverArrowDirection constants to specify arrow location on popover.
|
||||||
|
|
||||||
@ -305,6 +317,7 @@ Matches iOS UIPopoverArrowDirection constants to specify arrow location on popov
|
|||||||
| ARROW_ANY | <code>number</code> | <code>15</code> |
|
| ARROW_ANY | <code>number</code> | <code>15</code> |
|
||||||
|
|
||||||
<a name="module_Camera.Direction"></a>
|
<a name="module_Camera.Direction"></a>
|
||||||
|
|
||||||
### Camera.Direction : <code>enum</code>
|
### Camera.Direction : <code>enum</code>
|
||||||
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
**Kind**: static enum property of <code>[Camera](#module_Camera)</code>
|
||||||
**Properties**
|
**Properties**
|
||||||
@ -317,6 +330,7 @@ Matches iOS UIPopoverArrowDirection constants to specify arrow location on popov
|
|||||||
---
|
---
|
||||||
|
|
||||||
<a name="module_CameraPopoverOptions"></a>
|
<a name="module_CameraPopoverOptions"></a>
|
||||||
|
|
||||||
## CameraPopoverOptions
|
## CameraPopoverOptions
|
||||||
iOS-only parameters that specify the anchor element location and arrow
|
iOS-only parameters that specify the anchor element location and arrow
|
||||||
direction of the popover when selecting images from an iPad's library
|
direction of the popover when selecting images from an iPad's library
|
||||||
@ -338,6 +352,7 @@ location.
|
|||||||
---
|
---
|
||||||
|
|
||||||
<a name="module_CameraPopoverHandle"></a>
|
<a name="module_CameraPopoverHandle"></a>
|
||||||
|
|
||||||
## CameraPopoverHandle
|
## CameraPopoverHandle
|
||||||
A handle to an image picker popover.
|
A handle to an image picker popover.
|
||||||
|
|
||||||
|
@ -38,9 +38,6 @@
|
|||||||
"cordova-browser",
|
"cordova-browser",
|
||||||
"cordova-windows"
|
"cordova-windows"
|
||||||
],
|
],
|
||||||
"peerDependencies": {
|
|
||||||
"cordova-plugin-file": ">=2.0.0"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"precommit": "npm run gen-docs && git add README.md",
|
"precommit": "npm run gen-docs && git add README.md",
|
||||||
"gen-docs": "jsdoc2md --template \"jsdoc2md/TEMPLATE.md\" \"www/**/*.js\" --plugin \"dmd-plugin-cordova-plugin\" > README.md",
|
"gen-docs": "jsdoc2md --template \"jsdoc2md/TEMPLATE.md\" \"www/**/*.js\" --plugin \"dmd-plugin-cordova-plugin\" > README.md",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user