# AssetPackManager

# AssetPackManager

`
public


interface
AssetPackManager
`  
`


`

|----------------------------------------------------------|
| com.google.android.play.core.assetpacks.AssetPackManager |

<br />

*** ** * ** ***

Manages downloads of asset packs.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[AssetPackStates](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackStates.html)                                                                                                                                                       | ` `[cancel](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#cancel(java.util.List<java.lang.String>))`(`[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`> packNames) ` Requests to cancel the download of the specified asset packs.                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` abstract void`                                                                                                                                                                                                                                                                          | ` `[clearListeners](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#clearListeners())`() ` Unregisters all listeners previously added using[registerListener(AssetPackStateUpdateListener)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#registerListener(com.google.android.play.core.assetpacks.AssetPackStateUpdateListener)).                                                                                                                                                                                                                                                                                                                                                     |
| ` abstract `[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[AssetPackStates](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackStates.html)`>`                                                    | ` `[fetch](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#fetch(java.util.List<java.lang.String>))`(`[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`> packNames) ` Requests to download the specified asset packs.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` abstract `[AssetLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetLocation.html)                                                                                                                                                           | ` `[getAssetLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#getAssetLocation(java.lang.String,%20java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` packName, `[String](https://developer.android.com/reference/java/lang/String.html)` assetPath) ` \[advanced API\] Returns the location of an asset in a pack, or`null`if the asset is not present in the given pack.                                                                                                                                                                                                                                                                                                                  |
| ` abstract `[AssetPackLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackLocation.html)                                                                                                                                                   | ` `[getPackLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#getPackLocation(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` packName) ` Returns the location of the specified asset pack on the device or`null`if this pack is not downloaded.                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` abstract `[Map](https://developer.android.com/reference/java/util/Map.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`, `[AssetPackLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackLocation.html)`>` | ` `[getPackLocations](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#getPackLocations())`() ` Returns the location of all installed asset packs as a mapping from the asset pack name to an[AssetPackLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackLocation.html).                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` abstract `[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[AssetPackStates](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackStates.html)`>`                                                    | ` `[getPackStates](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#getPackStates(java.util.List<java.lang.String>))`(`[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`> packNames) ` Requests download state or details for the specified asset packs.                                                                                                                                                                                                                                                                                                                                                                                           |
| ` abstract void`                                                                                                                                                                                                                                                                          | ` `[registerListener](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#registerListener(com.google.android.play.core.assetpacks.AssetPackStateUpdateListener))`(`[AssetPackStateUpdateListener](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackStateUpdateListener.html)` listener) ` Registers a listener that will be notified of changes to the state of pack downloads for this app.                                                                                                                                                                                                                                                                                                              |
| ` abstract `[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[Void](https://developer.android.com/reference/java/lang/Void.html)`>`                                                                                                        | ` `[removePack](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#removePack(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` packName) ` Deletes the specified asset pack from the internal storage of the app.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` abstract boolean`                                                                                                                                                                                                                                                                       | ` `[showCellularDataConfirmation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#showCellularDataConfirmation(androidx.activity.result.ActivityResultLauncher<androidx.activity.result.IntentSenderRequest>))`(ActivityResultLauncher<IntentSenderRequest> activityResultLauncher) ` *This method is deprecated. This API has been deprecated in favor of[showConfirmationDialog(ActivityResultLauncher)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#showConfirmationDialog(androidx.activity.result.ActivityResultLauncher<androidx.activity.result.IntentSenderRequest>)).*                                                                                                      |
| ` abstract `[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>`                                                                                                  | ` `[showCellularDataConfirmation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#showCellularDataConfirmation(android.app.Activity))`(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` activity) ` *This method is deprecated. This API has been deprecated in favor of[showConfirmationDialog(Activity)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#showConfirmationDialog(android.app.Activity)).*                                                                                                                                                                                                                                                |
| ` abstract boolean`                                                                                                                                                                                                                                                                       | ` `[showConfirmationDialog](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#showConfirmationDialog(androidx.activity.result.ActivityResultLauncher<androidx.activity.result.IntentSenderRequest>))`(ActivityResultLauncher<IntentSenderRequest> activityResultLauncher) ` Shows a dialog that asks the user for consent to download packs that are currently in either the[AssetPackStatus.REQUIRES_USER_CONFIRMATION](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#REQUIRES_USER_CONFIRMATION)state or the[AssetPackStatus.WAITING_FOR_WIFI](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#WAITING_FOR_WIFI)state. |
| ` abstract `[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>`                                                                                                  | ` `[showConfirmationDialog](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#showConfirmationDialog(android.app.Activity))`(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` activity) ` Shows a dialog that asks the user for consent to download packs that are currently in either the[AssetPackStatus.REQUIRES_USER_CONFIRMATION](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#REQUIRES_USER_CONFIRMATION)state or the[AssetPackStatus.WAITING_FOR_WIFI](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#WAITING_FOR_WIFI)state.                                                    |
| ` abstract void`                                                                                                                                                                                                                                                                          | ` `[unregisterListener](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#unregisterListener(com.google.android.play.core.assetpacks.AssetPackStateUpdateListener))`(`[AssetPackStateUpdateListener](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackStateUpdateListener.html)` listener) ` Unregisters a listener previously added using[registerListener(AssetPackStateUpdateListener)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#registerListener(com.google.android.play.core.assetpacks.AssetPackStateUpdateListener)).                                                                                                                |

## Public methods

### cancel

```
public abstract AssetPackStates cancel (List<String> packNames)
```

Requests to cancel the download of the specified asset packs.

Note: Only active downloads can be canceled.

<br />

|         Parameters         ||
|-------------|---------------|
| `packNames` | `List` <br /> |

|                                                                                Returns                                                                                 ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|
| [AssetPackStates](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackStates.html) | The new state for all specified packs. <br /> |

### clearListeners

```
public abstract void clearListeners ()
```

Unregisters all listeners previously added using[registerListener(AssetPackStateUpdateListener)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#registerListener(com.google.android.play.core.assetpacks.AssetPackStateUpdateListener)).

<br />

### fetch

```
public abstract Task<AssetPackStates> fetch (List<String> packNames)
```

Requests to download the specified asset packs.

This method will fail if the app is not in the foreground.

<br />

|         Parameters         ||
|-------------|---------------|
| `packNames` | `List` <br /> |

|                                                                                                                                 Returns                                                                                                                                  ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------|
| [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[AssetPackStates](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackStates.html)`>` | the state of all specified pack names <br /> |

### getAssetLocation

```
public abstract AssetLocation getAssetLocation (String packName, 
                String assetPath)
```

\[advanced API\] Returns the location of an asset in a pack, or`null`if the asset is not present in the given pack.

You don't need to use this API for common use-cases: you can use the standard File API for accessing assets from asset packs that were extracted into the filesystem; and you can use Android's AssetManager API to access assets from packs that were installed as APKs.

This API is useful for game engines that don't use Asset Manager and for developers that want a unified method to access assets, independently from the delivery mode.

<br />

|          Parameters          ||
|-------------|-----------------|
| `packName`  | `String` <br /> |
| `assetPath` | `String` <br /> |

|                                                           Returns                                                           ||
|---------------------------------------------------------------------------------------------------------------------|--------|
| [AssetLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetLocation.html) | <br /> |

### getPackLocation

```
public abstract AssetPackLocation getPackLocation (String packName)
```

Returns the location of the specified asset pack on the device or`null`if this pack is not downloaded.

The files found at this path should not be modified.

<br />

|         Parameters          ||
|------------|-----------------|
| `packName` | `String` <br /> |

|                                                               Returns                                                               ||
|-----------------------------------------------------------------------------------------------------------------------------|--------|
| [AssetPackLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackLocation.html) | <br /> |

### getPackLocations

```
public abstract Map<String, AssetPackLocation> getPackLocations ()
```

Returns the location of all installed asset packs as a mapping from the asset pack name to an[AssetPackLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackLocation.html).

The files found at these paths should not be modified.

<br />

|                                                                                                                                        Returns                                                                                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [Map](https://developer.android.com/reference/java/util/Map.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`, `[AssetPackLocation](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackLocation.html)`>` | <br /> |

### getPackStates

```
public abstract Task<AssetPackStates> getPackStates (List<String> packNames)
```

Requests download state or details for the specified asset packs.

Do not use this method to determine whether an asset pack is downloaded. Instead use[getPackLocation(String)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#getPackLocation(java.lang.String)).

<br />

|         Parameters         ||
|-------------|---------------|
| `packNames` | `List` <br /> |

|                                                                                                              Returns                                                                                                               ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[AssetPackStates](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackStates.html)`>` | <br /> |

### registerListener

```
public abstract void registerListener (AssetPackStateUpdateListener listener)
```

Registers a listener that will be notified of changes to the state of pack downloads for this app. Listeners should be subsequently unregistered using[unregisterListener(AssetPackStateUpdateListener)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#unregisterListener(com.google.android.play.core.assetpacks.AssetPackStateUpdateListener)).

<br />

|                    Parameters                     ||
|------------|---------------------------------------|
| `listener` | `AssetPackStateUpdateListener` <br /> |

### removePack

```
public abstract Task<Void> removePack (String packName)
```

Deletes the specified asset pack from the internal storage of the app.

Use this method to delete asset packs instead of deleting files manually. This ensures that the Asset Pack will not be re-downloaded during an app update.

If the asset pack is currently being downloaded or installed, this method does not cancel the process. For this case, use[cancel(List)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#cancel(java.util.List<java.lang.String>))instead.

<br />

|         Parameters          ||
|------------|-----------------|
| `packName` | `String` <br /> |

|                                                                                                                        Returns                                                                                                                         ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
| [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[Void](https://developer.android.com/reference/java/lang/Void.html)`>` | A task that will be successful only if files were successfully deleted. <br /> |

### showCellularDataConfirmation

```
public abstract boolean showCellularDataConfirmation (ActivityResultLauncher<IntentSenderRequest> activityResultLauncher)
```

<br />

**This method is deprecated.**   
This API has been deprecated in favor of[showConfirmationDialog(ActivityResultLauncher)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#showConfirmationDialog(androidx.activity.result.ActivityResultLauncher<androidx.activity.result.IntentSenderRequest>)).

Shows a confirmation dialog to resume all pack downloads that are currently in the[AssetPackStatus.WAITING_FOR_WIFI](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#WAITING_FOR_WIFI)state. If the user accepts the dialog, packs are downloaded over cellular data.

The status of an asset pack is set to[AssetPackStatus.WAITING_FOR_WIFI](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#WAITING_FOR_WIFI)if the user is currently not on a Wi-Fi connection and the asset pack is large or the user has set their download preference in the Play Store to only download apps over Wi-Fi. By showing this dialog, your app can ask the user if they accept downloading the asset pack over cellular data instead of waiting for Wi-Fi.

The confirmation activity returns one of the following values:

- [Activity.RESULT_OK](https://developer.android.com/reference/android/app/Activity.html#RESULT_OK)if the user accepted.
- [Activity.RESULT_CANCELED](https://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED)if the user denied or the dialog has been closed in any other way (e.g. backpress).

<br />

<br />

|                                                       Parameters                                                        ||
|--------------------------|-----------------------------------------------------------------------------------------------|
| `activityResultLauncher` | `ActivityResultLauncher`: an activityResultLauncher to launch the confirmation dialog. <br /> |

|                               Returns                               ||
|-----------|----------------------------------------------------------|
| `boolean` | whether the confirmation dialog has been started. <br /> |

### showCellularDataConfirmation

```
public abstract Task<Integer> showCellularDataConfirmation (Activity activity)
```

<br />

**This method is deprecated.**   
This API has been deprecated in favor of[showConfirmationDialog(Activity)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#showConfirmationDialog(android.app.Activity)).

Shows a confirmation dialog to resume all pack downloads that are currently in the[AssetPackStatus.WAITING_FOR_WIFI](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#WAITING_FOR_WIFI)state. If the user accepts the dialog, packs are downloaded over cellular data.

The status of an asset pack is set to[AssetPackStatus.WAITING_FOR_WIFI](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#WAITING_FOR_WIFI)if the user is currently not on a Wi-Fi connection and the asset pack is large or the user has set their download preference in the Play Store to only download apps over Wi-Fi. By showing this dialog, your app can ask the user if they accept downloading the asset pack over cellular data instead of waiting for Wi-Fi.

<br />

|                                                              Parameters                                                               ||
|------------|---------------------------------------------------------------------------------------------------------------------------|
| `activity` | `Activity`: the activity on top of which the confirmation dialog is displayed. Use your current activity for this. <br /> |

|                                                                                                                                                                                                                                                                                                                                                                      Returns                                                                                                                                                                                                                                                                                                                                                                      ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>` | A[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)that completes once the dialog has been accepted, denied or closed. A successful task result contains one of the following values: - [Activity.RESULT_OK](https://developer.android.com/reference/android/app/Activity.html#RESULT_OK)if the user accepted. - [Activity.RESULT_CANCELED](https://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED)if the user denied or the dialog has been closed in any other way (e.g. backpress). <br /> |

### showConfirmationDialog

```
public abstract boolean showConfirmationDialog (ActivityResultLauncher<IntentSenderRequest> activityResultLauncher)
```

Shows a dialog that asks the user for consent to download packs that are currently in either the[AssetPackStatus.REQUIRES_USER_CONFIRMATION](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#REQUIRES_USER_CONFIRMATION)state or the[AssetPackStatus.WAITING_FOR_WIFI](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#WAITING_FOR_WIFI)state.

If the app has not been installed by Play, an update may be triggered to ensure that a valid version is installed. This will cause the app to restart and all asset requests to be cancelled. These assets should be requested again after the app restarts.

The confirmation activity returns one of the following values:

- [Activity.RESULT_OK](https://developer.android.com/reference/android/app/Activity.html#RESULT_OK)if the user accepted.
- [Activity.RESULT_CANCELED](https://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED)if the user denied or the dialog has been closed in any other way (e.g. backpress).

<br />

<br />

|                                                       Parameters                                                        ||
|--------------------------|-----------------------------------------------------------------------------------------------|
| `activityResultLauncher` | `ActivityResultLauncher`: an activityResultLauncher to launch the confirmation dialog. <br /> |

|                               Returns                               ||
|-----------|----------------------------------------------------------|
| `boolean` | whether the confirmation dialog has been started. <br /> |

### showConfirmationDialog

```
public abstract Task<Integer> showConfirmationDialog (Activity activity)
```

Shows a dialog that asks the user for consent to download packs that are currently in either the[AssetPackStatus.REQUIRES_USER_CONFIRMATION](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#REQUIRES_USER_CONFIRMATION)state or the[AssetPackStatus.WAITING_FOR_WIFI](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStatus.html#WAITING_FOR_WIFI)state.

If the app has not been installed by Play, an update may be triggered to ensure that a valid version is installed. This will cause the app to restart and all asset requests to be cancelled. These assets should be requested again after the app restarts.

<br />

|                                                              Parameters                                                               ||
|------------|---------------------------------------------------------------------------------------------------------------------------|
| `activity` | `Activity`: the activity on top of which the confirmation dialog is displayed. Use your current activity for this. <br /> |

|                                                                                                                                                                                                                                                                                                                                                                      Returns                                                                                                                                                                                                                                                                                                                                                                      ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>` | A[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)that completes once the dialog has been accepted, denied or closed. A successful task result contains one of the following values: - [Activity.RESULT_OK](https://developer.android.com/reference/android/app/Activity.html#RESULT_OK)if the user accepted. - [Activity.RESULT_CANCELED](https://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED)if the user denied or the dialog has been closed in any other way (e.g. backpress). <br /> |

### unregisterListener

```
public abstract void unregisterListener (AssetPackStateUpdateListener listener)
```

Unregisters a listener previously added using[registerListener(AssetPackStateUpdateListener)](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetPackManager.html#registerListener(com.google.android.play.core.assetpacks.AssetPackStateUpdateListener)).

<br />

|                    Parameters                     ||
|------------|---------------------------------------|
| `listener` | `AssetPackStateUpdateListener` <br /> |