mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2024-10-06 15:52:20 +08:00
CB-7977 Mention deviceready in plugin docs
This commit is contained in:
parent
aebe887ffe
commit
60b020e593
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user