Skip to content

Sunbird-Ed/sb-cordova-plugin-downloadmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sb-cordova-plugin-downloadmanager

A plugin to download files.

Installation

cordova plugin add https://github.com/Sunbird-Ed/sb-cordova-plugin-downloadmanager.git#<branch_name>

To install it locally

Clone the repo then execute the following command

cordova plugin add <location_of_plugin>/sb-cordova-plugin-downloadmanager

API Reference

downloadManager

downloadManager.enqueue(request, successCallback)

Enqueues the request to be downloaded.

  • request represents reuest to download a file.

downloadManager.query(filter, successCallback)

Queries the file in the queue

  • filter represents filter to be applied to find the file.

downloadManager.remove(ids, successCallback)

Removes the ids from queue,

  • ids represents path of the directory.

downloadManager.fetchSpeedLog(successCallback)

Logs the speed of the network.

About

Cordova plugin to handle content downloads.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published