Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android DownloadManager support for Titanum

preview

Use the Android default DownloadManager to download files in the background. It will open the system download list when you click on the notification.

const dmg = require("com.miga.downloadmanager");
let url = "https://....file.zip";
let filename = url.substring(url.lastIndexOf('/') + 1);

dmg.startDownload({
    url: url,
    filename: filename,
    success: onDone,
    title: "Download",
    description: "Download " + filename,
    target: "downloads" // podcasts, documents, downloads (default)
});

function onDone(){
	alert("done");
}

About

Use the Android DownloadManager in Titanium

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages