Class DownloaderOperation
Assembly: YooAsset.dll
View Source
Declaration
public abstract class DownloaderOperation : AsyncOperationBase, IEnumerator
Properties
TotalDownloadCount
统计的下载文件总数量
View Source
Declaration
public int TotalDownloadCount { get; }
TotalDownloadBytes
统计的下载文件的总大小
View Source
Declaration
public long TotalDownloadBytes { get; }
CurrentDownloadCount
当前已经完成的下载总数量
View Source
Declaration
public int CurrentDownloadCount { get; }
CurrentDownloadBytes
当前已经完成的下载总大小
View Source
Declaration
public long CurrentDownloadBytes { get; }
OnDownloadOverCallback
当下载器结束(无论成功或失败)
View Source
Declaration
public DownloaderOperation.OnDownloadOver OnDownloadOverCallback { get; set; }
OnDownloadProgressCallback
当下载进度发生变化
View Source
Declaration
public DownloaderOperation.OnDownloadProgress OnDownloadProgressCallback { get; set; }
OnDownloadErrorCallback
当某个文件下载失败
View Source
Declaration
public DownloaderOperation.OnDownloadError OnDownloadErrorCallback { get; set; }
OnStartDownloadFileCallback
当开始下载某个文件
View Source
Declaration
public DownloaderOperation.OnStartDownloadFile OnStartDownloadFileCallback { get; set; }
Methods
BeginDownload()
开始下载
View Source
Declaration
public void BeginDownload()
PauseDownload()
暂停下载
View Source
Declaration
public void PauseDownload()
ResumeDownload()
恢复下载
View Source
Declaration
public void ResumeDownload()
CancelDownload()
取消下载
View Source
Declaration
public void CancelDownload()
Implements
System.Collections.IEnumerator