C# Class Hugula.Update.Download

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: tenvick/hugula Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Releases all resource used by the Hugula.Update.Download object.

Call Dispose when you are finished using the Hugula.Update.Download. The Dispose method leaves the Hugula.Update.Download in an unusable state. After calling Dispose, you must release all references to the Hugula.Update.Download so the garbage collector can reclaim the memory that the Hugula.Update.Download was occupying.

Init ( string hosts, int maxLoading, System oneDone, System allDone ) : void

Load ( string url, string path, object args ) : void

Private Methods

Method Description
CheckLoad ( ReqInfo req ) : bool

判断加载

GetFree ( ) : WebDownload

Gets the free.

Load ( ReqInfo req ) : void

加入加载队列

OnDestroy ( ) : void
OnDownloadFileCompleted ( object sender, System e ) : void
OnDownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void
OnFileDown ( ReqInfo req, bool isError ) : void
Update ( ) : void

Method Details

Dispose() public static method

Releases all resource used by the Hugula.Update.Download object.
Call Dispose when you are finished using the Hugula.Update.Download. The Dispose method leaves the Hugula.Update.Download in an unusable state. After calling Dispose, you must release all references to the Hugula.Update.Download so the garbage collector can reclaim the memory that the Hugula.Update.Download was occupying.
public static Dispose ( ) : void
return void

Init() public method

public Init ( string hosts, int maxLoading, System oneDone, System allDone ) : void
hosts string
maxLoading int
oneDone System
allDone System
return void

Load() public method

public Load ( string url, string path, object args ) : void
url string
path string
args object
return void