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 |
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 |
static
AppUpdateOptions.Builder
|
newBuilder(int appUpdateType)
Creates a |
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 |
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 2022-05-05 UTC.