diff --git a/README.md b/README.md
index 1aaefb0..8102670 100644
--- a/README.md
+++ b/README.md
@@ -98,8 +98,10 @@ Documentation consists of template and API docs produced from the plugin JS code
---
+
## camera
+
### camera.getPicture(successCallback, errorCallback, options)
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
@@ -167,6 +169,7 @@ More examples [here](#camera-getPicture-examples). Quirks [here](#camera-getPict
navigator.camera.getPicture(cameraSuccess, cameraError, cameraOptions);
```
+
### camera.cleanup()
Removes intermediate image files that are kept in temporary storage
after calling [`camera.getPicture`](#module_camera.getPicture). Applies only when the value of
@@ -191,6 +194,7 @@ function onFail(message) {
}
```
+
### camera.onError : function
Callback function that provides an error message.
@@ -201,6 +205,7 @@ Callback function that provides an error message.
| message | string
| The message is provided by the device's native code. |
+
### camera.onSuccess : function
Callback function that provides the image data.
@@ -220,6 +225,7 @@ function cameraCallback(imageData) {
}
```
+
### camera.CameraOptions : Object
Optional parameters to customize the camera settings.
* [Quirks](#CameraOptions-quirks)
@@ -245,8 +251,10 @@ Optional parameters to customize the camera settings.
---
+
## Camera
+
### Camera.DestinationType : enum
**Kind**: static enum property of [Camera](#module_Camera)
**Properties**
@@ -258,6 +266,7 @@ Optional parameters to customize the camera settings.
| NATIVE_URI | number
| 2
| Return native uri (eg. asset-library://... for iOS) |
+
### Camera.EncodingType : enum
**Kind**: static enum property of [Camera](#module_Camera)
**Properties**
@@ -268,6 +277,7 @@ Optional parameters to customize the camera settings.
| PNG | number
| 1
| Return PNG encoded image |
+
### Camera.MediaType : enum
**Kind**: static enum property of [Camera](#module_Camera)
**Properties**
@@ -279,6 +289,7 @@ Optional parameters to customize the camera settings.
| ALLMEDIA | number
| 2
| Allow selection from all media types |
+
### Camera.PictureSourceType : enum
**Kind**: static enum property of [Camera](#module_Camera)
**Properties**
@@ -290,6 +301,7 @@ Optional parameters to customize the camera settings.
| SAVEDPHOTOALBUM | number
| 2
| Choose image from picture library (same as PHOTOLIBRARY for Android) |
+
### Camera.PopoverArrowDirection : enum
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 | number
| 15
|
+
### Camera.Direction : enum
**Kind**: static enum property of [Camera](#module_Camera)
**Properties**
@@ -317,6 +330,7 @@ Matches iOS UIPopoverArrowDirection constants to specify arrow location on popov
---
+
## CameraPopoverOptions
iOS-only parameters that specify the anchor element location and arrow
direction of the popover when selecting images from an iPad's library
@@ -338,6 +352,7 @@ location.
---
+
## CameraPopoverHandle
A handle to an image picker popover.
diff --git a/package.json b/package.json
index 3e43d28..452de28 100644
--- a/package.json
+++ b/package.json
@@ -38,9 +38,6 @@
"cordova-browser",
"cordova-windows"
],
- "peerDependencies": {
- "cordova-plugin-file": ">=2.0.0"
- },
"scripts": {
"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",