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();
Afficher le fichier Open project: Clancey/ClanceyLib

Private Properties

Свойство Type Description
downloadAllFiles void
downloadComplete void
downloadFile void
getFilePath string
outOfTime void
removeFile void
setStatus void
startDownloading void

Méthodes publiques

Méthode Description
AddFile ( string filePath ) : void
StartDownload ( ) : void
StopDownloading ( ) : void

Private Methods

Méthode 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 méthode

public static AddFile ( string filePath ) : void
filePath string
Résultat void

StartDownload() public static méthode

public static StartDownload ( ) : void
Résultat void

StopDownloading() public static méthode

public static StopDownloading ( ) : void
Résultat void