# AppUpdateOptions

Summary:[Nested Classes](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions#nestedclasses)\|[Ctors](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions#pubctors)\|[Methods](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions#inhmethods)  

# AppUpdateOptions

`
public


abstract
class
AppUpdateOptions
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|---------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | com.google.android.play.core.appupdate.AppUpdateOptions |

<br />

*** ** * ** ***

Options defining a specific in-app update flow and its parameters.

## Summary

|                                                                                                                                   ### Nested classes                                                                                                                                    ||
|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [AppUpdateOptions.Builder](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html) Builder for[AppUpdateOptions](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.html). |

|                                                                ### Public constructors                                                                 ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[AppUpdateOptions](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.html#AppUpdateOptions())`() ` |

|                                                                                                                                                                                                                                                      ### Public methods                                                                                                                                                                                                                                                       ||
|----------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract boolean`                                                                                                                                | ` `[allowAssetPackDeletion](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.html#allowAssetPackDeletion())`() ` Allows the update flow to delete Asset Packs from the app's storage before attempting to update the app, in case of insufficient storage.                                                                 |
| ` abstract int`                                                                                                                                    | ` `[appUpdateType](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.html#appUpdateType())`() ` Represents the type of the update flow.                                                                                                                                                                                     |
| ` static `[AppUpdateOptions](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.html)                 | ` `[defaultOptions](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.html#defaultOptions(int))`(int appUpdateType) ` Returns an[AppUpdateOptions](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.html)instance with the default values for the provided update flow type. |
| ` static `[AppUpdateOptions.Builder](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html) | ` `[newBuilder](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.html#newBuilder(int))`(int appUpdateType) ` Creates a[AppUpdateOptions.Builder](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html)for the provided update flow type.                           |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||

## Public constructors

### AppUpdateOptions

```
public AppUpdateOptions ()
```

<br />

<br />

## Public methods

### allowAssetPackDeletion

```
public abstract boolean allowAssetPackDeletion ()
```

Allows the update flow to delete Asset Packs from the app's storage before attempting to update the app, in case of insufficient storage.

For more information on Asset Packs, read[Dynamic Asset Delivery](https://d.android.com/guide/app-bundle/asset-delivery).

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### appUpdateType

```
public abstract int appUpdateType ()
```

Represents the type of the update flow.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### defaultOptions

```
public static AppUpdateOptions defaultOptions (int appUpdateType)
```

Returns an[AppUpdateOptions](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.html)instance with the default values for the provided update flow type.

<br />

|          Parameters           ||
|-----------------|--------------|
| `appUpdateType` | `int` <br /> |

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

### newBuilder

```
public static AppUpdateOptions.Builder newBuilder (int appUpdateType)
```

Creates a[AppUpdateOptions.Builder](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html)for the provided update flow type.

<br />

|          Parameters           ||
|-----------------|--------------|
| `appUpdateType` | `int` <br /> |

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