C# Class iOSHelpers.BackgroundDownloadManager

Mostrar archivo Open project: Clancey/iOSHelpers Class Usage Examples

Public Properties

Property Type Description
AutoProcess bool
BaseDir string

Private Properties

Property Type Description
AddController void
BackgroundDownloadManager System
GetControllers List
RemoveUrl void
UpdateProgress void
UpdateProgress void
loadState void
saveState void

Public Methods

Method Description
Cancel ( string url ) : void
Completed ( NSUrlSessionTask downloadTask, NSUrl location ) : void
Download ( Uri url, string destination ) : BackgroundDownload
Download ( string url, string destination ) : BackgroundDownload
Errored ( NSUrlSessionDownloadTask downloadTask ) : void
Failed ( NSUrlSession session, NSUrlSessionTask task, NSError error ) : void
MakeRelativePath ( String fromPath, String toPath ) : String
Reload ( ) : void
Remove ( string url ) : void
RemoveCompleted ( ) : void

Private Methods

Method Description
AddController ( string url, BackgroundDownload controller ) : void
BackgroundDownloadManager ( ) : System
GetControllers ( string url ) : List
RemoveUrl ( string url ) : void
UpdateProgress ( NSUrlSessionDownloadTask downloadTask, nfloat progress ) : void
UpdateProgress ( string url, nfloat progress ) : void
loadState ( ) : void
saveState ( ) : void

Method Details

Cancel() public static method

public static Cancel ( string url ) : void
url string
return void

Completed() public static method

public static Completed ( NSUrlSessionTask downloadTask, NSUrl location ) : void
downloadTask NSUrlSessionTask
location NSUrl
return void

Download() public static method

public static Download ( Uri url, string destination ) : BackgroundDownload
url System.Uri
destination string
return BackgroundDownload

Download() public static method

public static Download ( string url, string destination ) : BackgroundDownload
url string
destination string
return BackgroundDownload

Errored() public static method

public static Errored ( NSUrlSessionDownloadTask downloadTask ) : void
downloadTask NSUrlSessionDownloadTask
return void

Failed() public static method

public static Failed ( NSUrlSession session, NSUrlSessionTask task, NSError error ) : void
session NSUrlSession
task NSUrlSessionTask
error NSError
return void

MakeRelativePath() public static method

public static MakeRelativePath ( String fromPath, String toPath ) : String
fromPath String
toPath String
return String

Reload() public static method

public static Reload ( ) : void
return void

Remove() public static method

public static Remove ( string url ) : void
url string
return void

RemoveCompleted() public static method

public static RemoveCompleted ( ) : void
return void

Property Details

AutoProcess public_oe static_oe property

public static bool AutoProcess
return bool

BaseDir public_oe static_oe property

public static string BaseDir
return string