The TiDropboxChooser module enables you to select files from Dropbox account and retrieve URL link of selected file.
This project can be found on github at here.
Download the latest distribution ZIP-file and consult the Titanium Documentation on how install it, or simply use the gitTio CLI:
$ gittio install ti.dropboxchooser
- This is an Android module designed to work with Titanium SDK 7.0.1 or greater.
To access this module from JavaScript, you would do the following:
var TiDropboxChooser = require("ti.dropboxchooser");
TiDropboxChooser.init({
"appKey" : "YOUR_APP_KEY",
"resultType" : TiDropboxChooser.DIRECT_LINK
});
You can create an request for initialize using below properties
- appKey (Required) (String) Dropbox Application Key.
- resultType (Optional) (Constant) TiDropboxChooser Defined Constant used to retrieve file path. (Default, DIRECT_LINK)
// Open the Dropbox dialog to Read Remote File Url from Dropbox account.
// This method called after init().
TiDropboxChooser.openDialog(function(e) {
if (e.resultCode == -1) {
var fileUrl = e.url || "";
// TODO REST CODE
}
});
- PREVIEW_LINK
- DIRECT_LINK
- Abidhusain Chidi
- [email protected]
This project is licensed under the MIT approved License. For details please see the license associated with each project.
Code contributions are greatly appreciated, please submit a new pull request!