AppUpdateOptions

public abstract class AppUpdateOptions
extends Object

java.lang.Object
   ↳ com.google.android.play.core.appupdate.AppUpdateOptions


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

Summary

Nested classes

class AppUpdateOptions.Builder

Builder for AppUpdateOptions

Public constructors

AppUpdateOptions()

Public methods

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.

abstract int appUpdateType()

Represents the type of the update flow.

static AppUpdateOptions defaultOptions(int appUpdateType)

Returns an AppUpdateOptions instance with the default values for the provided update flow type.

static AppUpdateOptions.Builder newBuilder(int appUpdateType)

Creates a AppUpdateOptions.Builder for the provided update flow type.

Inherited methods

Public constructors

AppUpdateOptions

public AppUpdateOptions ()

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.

Returns
boolean

appUpdateType

public abstract int appUpdateType ()

Represents the type of the update flow.

Returns
int

defaultOptions

public static AppUpdateOptions defaultOptions (int appUpdateType)

Returns an AppUpdateOptions instance with the default values for the provided update flow type.

Parameters
appUpdateType int

Returns
AppUpdateOptions

newBuilder

public static AppUpdateOptions.Builder newBuilder (int appUpdateType)

Creates a AppUpdateOptions.Builder for the provided update flow type.

Parameters
appUpdateType int

Returns
AppUpdateOptions.Builder