Android 12 Developer Preview is here! Try it out, and give us your feedback!

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

Public constructors

Builder()

Public methods

abstract AppUpdateOptions build()

Builds AppUpdateOptions.

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.

abstract AppUpdateOptions.Builder setAppUpdateType(int value)

Sets the type of the update flow.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public abstract AppUpdateOptions build ()

Builds AppUpdateOptions.

Returns
AppUpdateOptions

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.

Parameters
value boolean

Returns
AppUpdateOptions.Builder

setAppUpdateType

public abstract AppUpdateOptions.Builder setAppUpdateType (int value)

Sets the type of the update flow.

Parameters
value int

Returns
AppUpdateOptions.Builder