PICO Platform Unity 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... | |
Downloadable content (DLC) represents the contents/files such as expansion packs that users can purchase and download, which can help grow your revenue. Each DLC is associated with an add-on and has an individual SKU as its unique identifier. Users must purchase the app before purchasing the DLCs provided in it. DLCs are downloadable in apps only.
DLC enables you to update your app in a more flexible and lightweight way. Once you want to update the content for a published app, you only need to upload new resources such as levels and cosmetics as DLCs on the PICO Developer Platform, but do not need to upload a new build. Users can thereby purchase, download, and experience the latest resources without having to update or reinstall your app.
|
inlinestatic |
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. |
|
inlinestatic |
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. |
|
inlinestatic |
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.
|
inlinestatic |
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.
|
inlinestatic |
Cancels the download of an asset file by asset file ID.
assetFileId | The ID of the asset file to cancel download for. |
|
inlinestatic |
Cancels the download of an asset file by asset file name.
assetFileName | The name of the asset file to cancel download for. |
|
inlinestatic |
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. |
|
inlinestatic |
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. |
|
inlinestatic |
Gets the asset file list.
AssetDetails
contains fields indicating whether an asset file is purchased or downloaded.
|
inlinestatic |
Gets the next page of the asset file list.
list | The current page of the asset file list. |
|
inlinestatic |
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. |
|
inlinestatic |
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. |