Game Framework  2021.05.31
UnityWebRequestDownloadAgentHelper类 参考

使用 UnityWebRequest 实现的下载代理辅助器。 更多...

类 UnityWebRequestDownloadAgentHelper 继承关系图:
DownloadAgentHelperBase DownloadAgentHelperBase IDownloadAgentHelper IDownloadAgentHelper

Public 成员函数

override void Download (string downloadUri, object userData)
 通过下载代理辅助器下载指定地址的数据。 更多...
 
override void Download (string downloadUri, long fromPosition, object userData)
 通过下载代理辅助器下载指定地址的数据。 更多...
 
override void Download (string downloadUri, long fromPosition, long toPosition, object userData)
 通过下载代理辅助器下载指定地址的数据。 更多...
 
override void Reset ()
 重置下载代理辅助器。 更多...
 
void Dispose ()
 释放资源。 更多...
 

Protected 成员函数

virtual void Dispose (bool disposing)
 释放资源。 更多...
 

属性

override EventHandler< DownloadAgentHelperUpdateBytesEventArgsDownloadAgentHelperUpdateBytes
 下载代理辅助器更新数据流事件。 更多...
 
override EventHandler< DownloadAgentHelperUpdateLengthEventArgsDownloadAgentHelperUpdateLength
 下载代理辅助器更新数据大小事件。 更多...
 
override EventHandler< DownloadAgentHelperCompleteEventArgsDownloadAgentHelperComplete
 下载代理辅助器完成事件。 更多...
 
override EventHandler< DownloadAgentHelperErrorEventArgsDownloadAgentHelperError
 下载代理辅助器错误事件。 更多...
 

额外继承的成员函数

- 静态 Protected 属性 继承自 DownloadAgentHelperBase
const int RangeNotSatisfiableErrorCode = 416
 范围不适用错误码。 更多...
 
- 事件 继承自 DownloadAgentHelperBase
abstract EventHandler< DownloadAgentHelperUpdateBytesEventArgsDownloadAgentHelperUpdateBytes
 下载代理辅助器更新数据流事件。 更多...
 
abstract EventHandler< DownloadAgentHelperUpdateLengthEventArgsDownloadAgentHelperUpdateLength
 下载代理辅助器更新数据大小事件。 更多...
 
abstract EventHandler< DownloadAgentHelperCompleteEventArgsDownloadAgentHelperComplete
 下载代理辅助器完成事件。 更多...
 
abstract EventHandler< DownloadAgentHelperErrorEventArgsDownloadAgentHelperError
 下载代理辅助器错误事件。 更多...
 
- 事件 继承自 IDownloadAgentHelper
EventHandler< DownloadAgentHelperUpdateBytesEventArgsDownloadAgentHelperUpdateBytes
 下载代理辅助器更新数据流事件。 更多...
 
EventHandler< DownloadAgentHelperUpdateLengthEventArgsDownloadAgentHelperUpdateLength
 下载代理辅助器更新数据大小事件。 更多...
 
EventHandler< DownloadAgentHelperCompleteEventArgsDownloadAgentHelperComplete
 下载代理辅助器完成事件。 更多...
 
EventHandler< DownloadAgentHelperErrorEventArgsDownloadAgentHelperError
 下载代理辅助器错误事件。 更多...
 

详细描述

使用 UnityWebRequest 实现的下载代理辅助器。

成员函数说明

◆ Dispose() [1/2]

void Dispose ( )

释放资源。

◆ Dispose() [2/2]

virtual void Dispose ( bool  disposing)
protectedvirtual

释放资源。

参数
disposing释放资源标记。

◆ Download() [1/3]

override void Download ( string  downloadUri,
long  fromPosition,
long  toPosition,
object  userData 
)
virtual

通过下载代理辅助器下载指定地址的数据。

参数
downloadUri下载地址。
fromPosition下载数据起始位置。
toPosition下载数据结束位置。
userData用户自定义数据。

实现了 DownloadAgentHelperBase.

◆ Download() [2/3]

override void Download ( string  downloadUri,
long  fromPosition,
object  userData 
)
virtual

通过下载代理辅助器下载指定地址的数据。

参数
downloadUri下载地址。
fromPosition下载数据起始位置。
userData用户自定义数据。

实现了 DownloadAgentHelperBase.

◆ Download() [3/3]

override void Download ( string  downloadUri,
object  userData 
)
virtual

通过下载代理辅助器下载指定地址的数据。

参数
downloadUri下载地址。
userData用户自定义数据。

实现了 DownloadAgentHelperBase.

◆ Reset()

override void Reset ( )
virtual

重置下载代理辅助器。

实现了 DownloadAgentHelperBase.

属性说明

◆ DownloadAgentHelperComplete

override EventHandler<DownloadAgentHelperCompleteEventArgs> DownloadAgentHelperComplete
addremove

下载代理辅助器完成事件。

◆ DownloadAgentHelperError

override EventHandler<DownloadAgentHelperErrorEventArgs> DownloadAgentHelperError
addremove

下载代理辅助器错误事件。

◆ DownloadAgentHelperUpdateBytes

override EventHandler<DownloadAgentHelperUpdateBytesEventArgs> DownloadAgentHelperUpdateBytes
addremove

下载代理辅助器更新数据流事件。

◆ DownloadAgentHelperUpdateLength

override EventHandler<DownloadAgentHelperUpdateLengthEventArgs> DownloadAgentHelperUpdateLength
addremove

下载代理辅助器更新数据大小事件。