C# Class iOSHelpers.BackgroundDownload

Show file Open project: Clancey/iOSHelpers Class Usage Examples

Public Properties

Property Type Description
Identifier string
RestoredDownloads Action>

Protected Properties

Property Type Description
Tcs TaskCompletionSource

Public Methods

Method Description
BackgroundDownload ( NSUrlSessionDownloadTask task ) : System
DownloadFileAsync ( Uri url, string destination ) : Task
FindSessions ( ) : void
Initalize ( ) : void
RepairFromBackground ( string sessionIdentifier, System.Action action ) : void

Private Methods

Method Description
BackgroundDownload ( ) : System
CompletBackgroundSession ( string identifier ) : void
InitBackgroundSession ( ) : NSUrlSession
InitBackgroundSession ( string identifier ) : NSUrlSession
restoreTasks ( NSUrlSession ses, NSUrlSessionDataTask sessions, NSUrlSessionUploadTask uploads, NSUrlSessionDownloadTask downloads ) : void

Method Details

BackgroundDownload() public method

public BackgroundDownload ( NSUrlSessionDownloadTask task ) : System
task NSUrlSessionDownloadTask
return System

DownloadFileAsync() public method

public DownloadFileAsync ( Uri url, string destination ) : Task
url System.Uri
destination string
return Task

FindSessions() public method

public FindSessions ( ) : void
return void

Initalize() public static method

public static Initalize ( ) : void
return void

RepairFromBackground() public static method

public static RepairFromBackground ( string sessionIdentifier, System.Action action ) : void
sessionIdentifier string
action System.Action
return void

Property Details

Identifier public static property

public static string Identifier
return string

RestoredDownloads public static property

public static Action> RestoredDownloads
return Action>

Tcs protected property

protected TaskCompletionSource Tcs
return TaskCompletionSource