|
PICO Unity Platform SDK
|
Static Public Member Functions | |
| static Task< AssetFileDeleteResult > | DeleteById (ulong assetFileId) |
| Deletes an installed asset file by asset file ID. The corresponding asset file will be removed from the device. More... | |
| static Task< AssetFileDeleteResult > | DeleteByName (string assetFileName) |
| Deletes an installed asset file by asset file name. The corresponding asset file will be removed from the device. More... | |
| static Task< AssetFileDownloadResult > | DownloadById (ulong assetFileId) |
| Downloads an asset file by asset file ID. More... | |
| static Task< AssetFileDownloadResult > | DownloadByName (string assetFileName) |
| Downloads an asset file by asset file name. More... | |
| static Task< AssetFileDownloadCancelResult > | DownloadCancelById (ulong assetFileId) |
| Cancels the download of an asset file by asset file ID. More... | |
| static Task< AssetFileDownloadCancelResult > | DownloadCancelByName (string assetFileName) |
| Cancels the download of an asset file by asset file name. More... | |
| static Task< AssetStatus > | StatusById (ulong assetId) |
| Gets the download status of an asset file by asset file ID. More... | |
| static Task< AssetStatus > | StatusByName (string assetFileName) |
| Gets the download status of an asset file by asset file name. More... | |
| static Task< AssetDetailsList > | GetList () |
| Gets the asset file list. More... | |
| static Task< AssetDetailsList > | GetNextAssetDetailsListPage (AssetDetailsList list) |
| Gets the next page of the asset file list. More... | |
| static void | SetOnDownloadUpdateCallback (Message< AssetFileDownloadUpdate >.Handler handler) |
This notification is used to track the download progress of asset file. The Transferred field indicates the number of bytes downloaded. The CompleteStatus field indicates the download status. More... | |
| static void | SetOnDeleteForSafetyCallback (Message< AssetFileDeleteForSafety >.Handler handler) |
| If the downloaded asset file is different from the original one, the asset file will be automatically removed, and the app will receive a notification. More... | |
|
static |
Deletes an installed asset file by asset file ID. The corresponding asset file will be removed from the device.
| assetFileId | The ID of the asset file to delete. |
|
static |
Deletes an installed asset file by asset file name. The corresponding asset file will be removed from the device.
| assetFileName | The name of the asset file to delete. |
|
static |
Downloads an asset file by asset file ID.
| assetFileId | The ID of the asset file to download. |
An object containing the asset file ID and asset file name.
If the response returns code 0, the download will start and the system will periodically push information about the download progress. If the user has not purchased the asset file, a non-zero error code will be returned.
|
static |
Downloads an asset file by asset file name.
| assetFileName | The name of the asset file to download. |
An object containing the asset file ID and asset file name.
If the response returns code 0, the download will start and the system will periodically push information about the download progress. If the user has not purchased the asset file, a non-zero error code will be returned.
|
static |
Cancels the download of an asset file by asset file ID.
| assetFileId | The ID of the asset file to cancel download for. |
|
static |
Cancels the download of an asset file by asset file name.
| assetFileName | The name of the asset file to cancel download for. |
|
static |
Gets the download status of an asset file by asset file ID.
| assetId | The ID of the asset file to get the download status for. |
|
static |
Gets the download status of an asset file by asset file name.
| assetFileName | The name of the asset file to get the download status for. |
|
static |
Gets the asset file list.
AssetDetails contains fields indicating whether an asset file is purchased or downloaded.
|
static |
Gets the next page of the asset file list.
| list | The current page of the asset file list. |
|
static |
This notification is used to track the download progress of asset file. The Transferred field indicates the number of bytes downloaded. The CompleteStatus field indicates the download status.
| handler | The callback function. |
|
static |
If the downloaded asset file is different from the original one, the asset file will be automatically removed, and the app will receive a notification.
| handler | The callback function. |