diff --git a/README.md b/README.md index 7f5a9cf..0258903 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,9 @@ description: Take pictures with the device camera. # under the License. --> -[![Build Status](https://travis-ci.org/apache/cordova-plugin-camera.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-camera) +|Android|iOS| Windows 8.1 Store | Windows 8.1 Phone | Windows 10 Store | Travis CI | +|:-:|:-:|:-:|:-:|:-:|:-:| +|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-camera/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-camera/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-camera/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-camera/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-camera/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-camera.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-camera) # cordova-plugin-camera @@ -98,8 +100,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 +171,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 +196,7 @@ function onFail(message) { } ``` + ### camera.onError : function Callback function that provides an error message. @@ -201,6 +207,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 +227,7 @@ function cameraCallback(imageData) { } ``` + ### camera.CameraOptions : Object Optional parameters to customize the camera settings. * [Quirks](#CameraOptions-quirks) @@ -245,8 +253,10 @@ Optional parameters to customize the camera settings. --- + ## Camera + ### Camera.DestinationType : enum **Kind**: static enum property of [Camera](#module_Camera) **Properties** @@ -258,6 +268,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 +279,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 +291,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 +303,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 +319,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 +332,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 +354,7 @@ location. --- + ## CameraPopoverHandle A handle to an image picker popover. diff --git a/jsdoc2md/TEMPLATE.md b/jsdoc2md/TEMPLATE.md index 64bce32..95ef23c 100644 --- a/jsdoc2md/TEMPLATE.md +++ b/jsdoc2md/TEMPLATE.md @@ -4,7 +4,9 @@ description: Take pictures with the device camera. --- {{>cdv-license~}} -[![Build Status](https://travis-ci.org/apache/cordova-plugin-camera.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-camera) +|Android|iOS| Windows 8.1 Store | Windows 8.1 Phone | Windows 10 Store | Travis CI | +|:-:|:-:|:-:|:-:|:-:|:-:| +|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-camera/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-camera/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-camera/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-camera/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-camera)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-camera/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-camera.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-camera) # cordova-plugin-camera