C# Class ClanceysLib.Downloader

Static downloader class. This class will download files one at a time. If the app is closed or the lock screen is enabled, the app will continue to dowload the remaining files. If the app runs out of the alloted background time, It will alert the user to reopen the app to avoid disruption. Use: To use just call Downloader.Add();
Show file Open project: Clancey/ClanceyLib

Private Properties

Property Type Description
downloadAllFiles void
downloadComplete void
downloadFile void
getFilePath string
outOfTime void
removeFile void
setStatus void
startDownloading void

Public Methods

Method Description
AddFile ( string filePath ) : void
StartDownload ( ) : void
StopDownloading ( ) : void

Private Methods

Method Description
downloadAllFiles ( ) : void
downloadComplete ( ) : void
downloadFile ( string filePath, System.Action completed ) : void
getFilePath ( int index ) : string
outOfTime ( ) : void

This will send a local push notification warning the user the download is not complete and will be canceled if they dont reopen the app, If opened on time the download will continue perfectly.

removeFile ( string filePath ) : void
setStatus ( statusType status, string inStatus ) : void
startDownloading ( ) : void

Method Details

AddFile() public static method

public static AddFile ( string filePath ) : void
filePath string
return void

StartDownload() public static method

public static StartDownload ( ) : void
return void

StopDownloading() public static method

public static StopDownloading ( ) : void
return void