Class ContentDownloadService
Class responsible for managing active content downloads.
Namespace: Unity.Entities.Content
Assembly: Unity.Entities.dll
Syntax
public class ContentDownloadService
Constructors
Name | Description |
---|---|
Content |
Construct a download service. |
Properties
Name | Description |
---|---|
Cache |
The root directory of the local cache. |
Name | The download service name. Each service name must be unique. |
Priority | The priority of the service. Higher values will place it at the front of the service list. |
Total |
Total bytes processed. |
Total |
Total bytes downloaded. |
Methods
Name | Description |
---|---|
Can |
Used to determine which download service to use to download content. Each service is checked in order until a servce returns true. |
Cancel |
Called when a download needs to be cancelled. This is not guaranteed to cancel the operation. |
Clear |
Resets the download statistics. |
Compute |
Computes the local path of the content in the cache. |
Dispose() | Release up internal resources |
Download |
Starts the process of downloading content. |
Get |
Gets the downlaod progress for a specific location. |
Get |
Gets the download status for a specific location. If the content is cached, this will return a completed status even if the content was not explicitly requested. |
Get |
Gets the local cache file path for a location and checks to see if it exists. |
On |
Called when added to the content delivery service. |
Process() | Processes active downloads and updates status. |