C# Класс 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();
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
downloadAllFiles void
downloadComplete void
downloadFile void
getFilePath string
outOfTime void
removeFile void
setStatus void
startDownloading void

Открытые методы

Метод Описание
AddFile ( string filePath ) : void
StartDownload ( ) : void
StopDownloading ( ) : void

Приватные методы

Метод Описание
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

Описание методов

AddFile() публичный статический Метод

public static AddFile ( string filePath ) : void
filePath string
Результат void

StartDownload() публичный статический Метод

public static StartDownload ( ) : void
Результат void

StopDownloading() публичный статический Метод

public static StopDownloading ( ) : void
Результат void