CB-7977 Mention deviceready in plugin docs

This commit is contained in:
Josh Soref 2014-11-06 17:10:57 -05:00
parent aebe887ffe
commit 60b020e593

View File

@ -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