Skip to content

Titanium Module for working with the file chooser from Dropbox account.

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.txt
Notifications You must be signed in to change notification settings

qalbit/TiDropboxChooser

Repository files navigation

TiDropboxChooser Module

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.

Get it gitTio

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

Before you start

  • This is an Android module designed to work with Titanium SDK 7.0.1 or greater.

Accessing the TiDropboxChooser Module

To access this module from JavaScript, you would do the following:

var TiDropboxChooser = require("ti.dropboxchooser");

Method

Initialize


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 Dropbox Dialog


// 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
	}
});

Constant

Dropbox resultType Constant

  • PREVIEW_LINK
  • DIRECT_LINK

Author

Licensing & Support

This project is licensed under the MIT approved License. For details please see the license associated with each project.

Contributing

Code contributions are greatly appreciated, please submit a new pull request!

References

About

Titanium Module for working with the file chooser from Dropbox account.

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published

Languages