cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jso...@apache.org
Subject cordova-plugin-file-transfer git commit: CB-7977 Mention deviceready in plugin docs
Date Wed, 12 Nov 2014 17:43:32 GMT
Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master aebe887ff -> 60b020e59


CB-7977 Mention deviceready in plugin docs


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/60b020e5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/60b020e5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/60b020e5

Branch: refs/heads/master
Commit: 60b020e5934b506f2ec45a21f5b12ea6aaefd180
Parents: aebe887
Author: Josh Soref <jsoref@blackberry.com>
Authored: Thu Nov 6 17:10:57 2014 -0500
Committer: Josh Soref <jsoref@blackberry.com>
Committed: Wed Nov 12 12:43:03 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/60b020e5/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 48b14b2..0ba5c95 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -21,6 +21,15 @@
 
 This plugin allows you to upload and download files.
 
+This plugin defines global `FileTransfer`, `FileUploadOptions` Constructors.
+
+Although in the global scope, they are not available until after the `deviceready` event.
+
+    document.addEventListener("deviceready", onDeviceReady, false);
+    function onDeviceReady() {
+        console.log(FileTransfer);
+    }
+
 ## Installation
 
     cordova plugin add org.apache.cordova.file-transfer


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


Mime
View raw message