You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by js...@apache.org on 2014/11/12 18:36:49 UTC

[1/2] cordova-plugin-camera git commit: CB-7979 Each plugin doc should have a ## Installation section

Repository: cordova-plugin-camera
Updated Branches:
  refs/heads/master 0d389857c -> 032531ae7


CB-7979 Each plugin doc should have a ## Installation section


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/fb4cff9c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/fb4cff9c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/fb4cff9c

Branch: refs/heads/master
Commit: fb4cff9cc047b9ceb5d42db7027bdbbc9d03053b
Parents: 0d38985
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:01:19 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Thu Nov 6 17:34:09 2014 -0500

----------------------------------------------------------------------
 doc/index.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/fb4cff9c/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 0ca141f..48c8e5a 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -22,8 +22,9 @@
 This plugin provides an API for taking pictures and for choosing images from
 the system's image library.
 
-    cordova plugin add org.apache.cordova.camera
+## Installation
 
+    cordova plugin add org.apache.cordova.camera
 
 ## navigator.camera.getPicture
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[2/2] cordova-plugin-camera git commit: CB-7977 Mention deviceready in plugin docs

Posted by js...@apache.org.
CB-7977 Mention deviceready in plugin docs


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/032531ae
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/032531ae
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/032531ae

Branch: refs/heads/master
Commit: 032531ae77cb00bd77b547ed2708c4eff123deb4
Parents: fb4cff9
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:02:58 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Thu Nov 6 17:34:12 2014 -0500

----------------------------------------------------------------------
 doc/index.md | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/032531ae/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 48c8e5a..0aee1e6 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -19,9 +19,16 @@
 
 # org.apache.cordova.camera
 
-This plugin provides an API for taking pictures and for choosing images from
+This plugin defines a global `navigator.camera` object, which provides an API for taking pictures and for choosing images from
 the system's image library.
 
+Although the object is attached to the global scoped `navigator`, it is not available until after the `deviceready` event.
+
+    document.addEventListener("deviceready", onDeviceReady, false);
+    function onDeviceReady() {
+        console.log(navigator.camera);
+    }
+
 ## Installation
 
     cordova plugin add org.apache.cordova.camera


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org