You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/03/14 18:50:52 UTC

docs commit: [CB-1687] Added Camera.Direction documentation.

Updated Branches:
  refs/heads/master e9d709339 -> 6994f045b


[CB-1687] Added Camera.Direction documentation.

Also, fixed spacing issues; couldn't resist.


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/6994f045
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/6994f045
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/6994f045

Branch: refs/heads/master
Commit: 6994f045b2faac9b52eb5110a076ab9ccc319fd8
Parents: e9d7093
Author: Max Woghiren <ma...@gmail.com>
Authored: Wed Mar 13 15:50:07 2013 -0400
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Thu Mar 14 10:39:54 2013 -0700

----------------------------------------------------------------------
 .../edge/cordova/camera/parameter/cameraOptions.md |   53 +++++++++------
 1 files changed, 31 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/6994f045/docs/en/edge/cordova/camera/parameter/cameraOptions.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/camera/parameter/cameraOptions.md b/docs/en/edge/cordova/camera/parameter/cameraOptions.md
index 2264af6..7e4e803 100644
--- a/docs/en/edge/cordova/camera/parameter/cameraOptions.md
+++ b/docs/en/edge/cordova/camera/parameter/cameraOptions.md
@@ -22,9 +22,9 @@ cameraOptions
 
 Optional parameters to customize the camera settings.
 
-    { quality : 75, 
-      destinationType : Camera.DestinationType.DATA_URL, 
-      sourceType : Camera.PictureSourceType.CAMERA, 
+    { quality : 75,
+      destinationType : Camera.DestinationType.DATA_URL,
+      sourceType : Camera.PictureSourceType.CAMERA,
       allowEdit : true,
       encodingType: Camera.EncodingType.JPEG,
       targetWidth: 100,
@@ -38,14 +38,14 @@ Options
 - __quality:__ Quality of saved image. Range is [0, 100]. (`Number`)
 
 - __destinationType:__ Choose the format of the return value.  Defined in navigator.camera.DestinationType (`Number`)
-        
-            Camera.DestinationType = {
-                DATA_URL : 0,                // Return image as base64 encoded string
-                FILE_URI : 1                 // Return image file URI
-            };
+
+        Camera.DestinationType = {
+            DATA_URL : 0,                // Return image as base64 encoded string
+            FILE_URI : 1                 // Return image file URI
+        };
 
 - __sourceType:__ Set the source of the picture.  Defined in nagivator.camera.PictureSourceType (`Number`)
-     
+
         Camera.PictureSourceType = {
             PHOTOLIBRARY : 0,
             CAMERA : 1,
@@ -53,29 +53,35 @@ Options
         };
 
 - __allowEdit:__ Allow simple editing of image before selection. (`Boolean`)
-  
+
 - __encodingType:__ Choose the encoding of the returned image file.  Defined in navigator.camera.EncodingType (`Number`)
-        
-            Camera.EncodingType = {
-                JPEG : 0,               // Return JPEG encoded image
-                PNG : 1                 // Return PNG encoded image
-            };
+
+        Camera.EncodingType = {
+            JPEG : 0,               // Return JPEG encoded image
+            PNG : 1                 // Return PNG encoded image
+        };
 
 - __targetWidth:__ Width in pixels to scale image. Must be used with targetHeight.  Aspect ratio is maintained. (`Number`)
 - __targetHeight:__ Height in pixels to scale image. Must be used with targetWidth. Aspect ratio is maintained. (`Number`)
 
 - __mediaType:__ Set the type of media to select from.  Only works when PictureSourceType is PHOTOLIBRARY or SAVEDPHOTOALBUM. Defined in nagivator.camera.MediaType (`Number`)
-     
-        Camera.MediaType = { 
-			PICTURE: 0,             // allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType
-			VIDEO: 1,               // allow selection of video only, WILL ALWAYS RETURN FILE_URI
-			ALLMEDIA : 2			// allow selection from all media types
+
+        Camera.MediaType = {
+            PICTURE: 0,             // allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType
+            VIDEO: 1,               // allow selection of video only, WILL ALWAYS RETURN FILE_URI
+            ALLMEDIA : 2            // allow selection from all media types
 };
 
 - __correctOrientation:__ Rotate the image to correct for the orientation of the device during capture. (`Boolean`)
 - __saveToPhotoAlbum:__ Save the image to the photo album on the device after capture. (`Boolean`)
-- __popoverOptions:__ iOS only options to specify popover location in iPad.  Defined in CameraPopoverOptions
-  
+- __popoverOptions:__ iOS only options to specify popover location in iPad.  Defined in CameraPopoverOptions.
+- __cameraDirection:__ Choose the camera to use (front- or back-facing).  Defined in navigator.camera.Direction (`Number`)
+
+        Camera.Direction = {
+            BACK : 0,           // Use the back-facing camera
+            FRONT : 1           // Use the front-facing camera
+        };
+
 Android Quirks
 --------------
 
@@ -92,6 +98,7 @@ BlackBerry Quirks
 - Using Large image sizes may result in inability to encode image on later model devices with high resolution cameras (e.g. Torch 9800).
 - Camera.MediaType is not supported.
 - Ignores the `correctOrientation` parameter.
+- Ignores the `cameraDirection` parameter.
 
 webOS Quirks
 -----------
@@ -102,6 +109,7 @@ webOS Quirks
 - Camera.MediaType is not supported.
 - Ignores the `correctOrientation` parameter.
 - Ignores the `saveToPhotoAlbum` parameter.
+- Ignores the `cameraDirection` parameter.
 
 iOS Quirks
 --------------
@@ -114,6 +122,7 @@ Windows Phone 7 and 8 Quirks
 
 - Ignores the `allowEdit` parameter.
 - Ignores the `correctOrientation` parameter.
+- Ignores the `cameraDirection` parameter.
 
 Bada 1.2 Quirks
 --------------