# Google.Play.AssetDelivery.PlayAssetPackBatchRequest

A [CustomYieldInstruction](https://docs.unity3d.com/ScriptReference/CustomYieldInstruction.html) used to monitor the asynchronous retrieval of a batch of asset packs.

## Summary

### Inheritance

Inherits from: CustomYieldInstruction

| ### Public attributes ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1a49da7c2e4ffee675eccaf64aabc9cfd7` | `IDictionary< string, https://developer.android.com/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackRequest >` A dictionary of asset pack requests, keyed by name, that are present in this batch. |

| ### Properties ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#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. |
| `https://developer.android.com/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#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. |

| ### Events ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1a18837cd77dd2d73ca5a6e347d2b95157 = delegate { }` | `Action< https://developer.android.com/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest >` Event indicating that all the requests in this batch are complete. |

| ### Protected functions ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1acfbc372177d8c3c9d52d6527786dcfaf()` | `void` Invokes the [Completed](https://developer.android.com/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1a18837cd77dd2d73ca5a6e347d2b95157) event. |

## Public attributes

### Requests

```c#
IDictionary< string, PlayAssetPackRequest > Requests
```
A dictionary of asset pack requests, keyed by name, that are present in this batch.

## Properties

### IsDone

```c#
bool IsDone
```
Returns true if all requests in this batch are in either the AssetDeliveryStatus.Available or AssetDeliveryStatus.Failed status, false otherwise.

### keepWaiting

```c#
override bool keepWaiting
```
Implements the [CustomYieldInstruction.keepWaiting](https://docs.unity3d.com/ScriptReference/CustomYieldInstruction-keepWaiting.html) property so that this request can be yielded on in a coroutine.

## Events

### Completed

```c#
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

```c#
void InvokeCompletedEvent()
```
Invokes the [Completed](https://developer.android.com/reference/unity/class/Google/Play/AssetDelivery/PlayAssetPackBatchRequest#classGoogle_1_1Play_1_1AssetDelivery_1_1PlayAssetPackBatchRequest_1a18837cd77dd2d73ca5a6e347d2b95157) event.