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

From class java.lang.Object

Public constructors

AppUpdateOptions

AppUpdateOptions ()

Public methods

allowAssetPackDeletion

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

int appUpdateType ()

Represents the type of the update flow.

Returns
int

defaultOptions

AppUpdateOptions defaultOptions (int appUpdateType)

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

Parameters
appUpdateType int

Returns
AppUpdateOptions

newBuilder

AppUpdateOptions.Builder newBuilder (int appUpdateType)

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

Parameters
appUpdateType int

Returns
AppUpdateOptions.Builder