Stay organized with collections
Save and categorize content based on your preferences.
Google.Play.AssetDelivery.PlayAssetPackBatchRequest
A CustomYieldInstruction used to monitor the asynchronous retrieval of a batch of asset packs.
Summary
Inheritance
Inherits from: CustomYieldInstruction
Public attributes
|
Requests
|
A dictionary of asset pack requests, keyed by name, that are present in this batch.
|
Properties
|
IsDone
|
bool
Returns true if all requests in this batch are in either the AssetDeliveryStatus.Available or AssetDeliveryStatus.Failed status, false otherwise.
|
keepWaiting
|
override bool
|
Events
|
Completed = delegate { }
|
Event indicating that all the requests in this batch are complete.
|
Public attributes
Requests
IDictionary< string, PlayAssetPackRequest > Requests
A dictionary of asset pack requests, keyed by name, that are present in this batch.
Properties
IsDone
bool IsDone
Returns true if all requests in this batch are in either the AssetDeliveryStatus.Available or AssetDeliveryStatus.Failed status, false otherwise.
keepWaiting
override bool keepWaiting
Events
Completed
Action< PlayAssetPackBatchRequest > Completed = delegate { }
Event indicating that all the requests in this batch are complete.
If an event handler is registered after the operation has completed, and thus after this event has been invoked, then the handler will be called synchronously.
Protected functions
InvokeCompletedEvent
void InvokeCompletedEvent()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-03-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-03-29 UTC."],[],[],null,["# Google.Play.AssetDelivery.PlayAssetPackBatchRequest Class Reference\n\nGoogle.Play.AssetDelivery.PlayAssetPackBatchRequest\n===================================================\n\nA [CustomYieldInstruction](https://docs.unity3d.com/ScriptReference/CustomYieldInstruction.html) used to monitor the asynchronous retrieval of a batch of asset packs.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: CustomYieldInstruction\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Requests](#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1a49da7c2e4ffee675eccaf64aabc9cfd7) | `IDictionary\u003c string, `[PlayAssetPackRequest](/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackRequest)` \u003e` A dictionary of asset pack requests, keyed by name, that are present in this batch. |\n\n| ### Properties ||\n|----------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [IsDone](#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1aee692f8cc2bf54e41ad8a3f72145cb0f) | `bool` Returns true if all requests in this batch are in either the AssetDeliveryStatus.Available or AssetDeliveryStatus.Failed status, false otherwise. |\n| [keepWaiting](#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1a5b40244e80cc6d3417bf19e286141665) | `override bool` Implements the [CustomYieldInstruction.keepWaiting](https://docs.unity3d.com/ScriptReference/CustomYieldInstruction-keepWaiting.html) property so that this request can be yielded on in a coroutine. |\n\n| ### Events ||\n|-------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Completed](#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1a18837cd77dd2d73ca5a6e347d2b95157)` = delegate { }` | `Action\u003c `[PlayAssetPackBatchRequest](/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest)` \u003e` Event indicating that all the requests in this batch are complete. |\n\n| ### Protected functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [InvokeCompletedEvent](#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1acfbc372177d8c3c9d52d6527786dcfaf)`()` | `void` Invokes the [Completed](/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1a18837cd77dd2d73ca5a6e347d2b95157) event. |\n\nPublic attributes\n-----------------\n\n### Requests\n\n```c#\nIDictionary\u003c string, PlayAssetPackRequest \u003e Requests\n``` \nA dictionary of asset pack requests, keyed by name, that are present in this batch.\n\nProperties\n----------\n\n### IsDone\n\n```c#\nbool IsDone\n``` \nReturns true if all requests in this batch are in either the AssetDeliveryStatus.Available or AssetDeliveryStatus.Failed status, false otherwise. \n\n### keepWaiting\n\n```c#\noverride bool keepWaiting\n``` \nImplements the [CustomYieldInstruction.keepWaiting](https://docs.unity3d.com/ScriptReference/CustomYieldInstruction-keepWaiting.html) property so that this request can be yielded on in a coroutine.\n\nEvents\n------\n\n### Completed\n\n```c#\nAction\u003c PlayAssetPackBatchRequest \u003e Completed = delegate { }\n``` \nEvent indicating that all the requests in this batch are complete.\n\nIf an event handler is registered after the operation has completed, and thus after this event has been invoked, then the handler will be called synchronously.\n\nProtected functions\n-------------------\n\n### InvokeCompletedEvent\n\n```c#\nvoid InvokeCompletedEvent()\n``` \nInvokes the [Completed](/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1a18837cd77dd2d73ca5a6e347d2b95157) event."]]