Stay organized with collections
Save and categorize content based on your preferences.
AppUpdateOptions.Builder
public
static
abstract
class
AppUpdateOptions.Builder
extends Object
java.lang.Object
|
↳ |
com.google.android.play.core.appupdate.AppUpdateOptions.Builder
|
Builder for AppUpdateOptions
.
Summary
Inherited methods |
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
Builder
public Builder ()
Public methods
setAllowAssetPackDeletion
public abstract AppUpdateOptions.Builder setAllowAssetPackDeletion (boolean value)
Allows the update flow to clear some 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.
setAppUpdateType
public abstract AppUpdateOptions.Builder setAppUpdateType (int value)
Sets the type of the update flow.
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 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# AppUpdateOptions.Builder\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nAppUpdateOptions.Builder\n========================\n\n\n`\npublic\nstatic\n\nabstract\nclass\nAppUpdateOptions.Builder\n`\n\n\n`\n\nextends `[Object](https://developer.android.com/reference/java/lang/Object.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|-----------------------------------------------------------------|\n| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||\n| ↳ | com.google.android.play.core.appupdate.AppUpdateOptions.Builder |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nBuilder for [AppUpdateOptions](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.html).\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[Builder](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html#Builder())`() ` |\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[AppUpdateOptions](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.html) | ` `[build](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html#build())`() ` Builds [AppUpdateOptions](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.html). |\n| ` abstract `[AppUpdateOptions.Builder](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html) | ` `[setAllowAssetPackDeletion](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html#setAllowAssetPackDeletion(boolean))`(boolean value) ` Allows the update flow to clear some Asset Packs from the app's storage before attempting to update the app, in case of insufficient storage. |\n| ` abstract `[AppUpdateOptions.Builder](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html) | ` `[setAppUpdateType](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html#setAppUpdateType(int))`(int value) ` Sets the type of the update flow. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| 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)`\u003c?\u003e` | ` 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() ` | ||\n\nPublic constructors\n-------------------\n\n### Builder\n\n```\npublic Builder ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### build\n\n```\npublic abstract AppUpdateOptions build ()\n```\n\nBuilds [AppUpdateOptions](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.html).\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------------------------------------------------------------------------------------------------------------|--------|\n| [AppUpdateOptions](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.html) | \u003cbr /\u003e |\n\n### setAllowAssetPackDeletion\n\n```\npublic abstract AppUpdateOptions.Builder setAllowAssetPackDeletion (boolean value)\n```\n\nAllows the update flow to clear some Asset Packs from the app's storage before attempting to\nupdate the app, in case of insufficient storage.\n\nFor more information on Asset Packs, read [Dynamic Asset Delivery](https://d.android.com/guide/app-bundle/asset-delivery).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|------------------|\n| `value` | `boolean` \u003cbr /\u003e |\n\n| Returns ||\n|---------------------------------------------------------------------------------------------------------------------------------|--------|\n| [AppUpdateOptions.Builder](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html) | \u003cbr /\u003e |\n\n### setAppUpdateType\n\n```\npublic abstract AppUpdateOptions.Builder setAppUpdateType (int value)\n```\n\nSets the type of the update flow.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|--------------|\n| `value` | `int` \u003cbr /\u003e |\n\n| Returns ||\n|---------------------------------------------------------------------------------------------------------------------------------|--------|\n| [AppUpdateOptions.Builder](../../../../../../../reference/com/google/android/play/core/appupdate/AppUpdateOptions.Builder.html) | \u003cbr /\u003e |"]]