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 | |
---|---|
![]()
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 |
Interfaces
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-05-18 UTC.