java.lang.Object | |
↳ | android.content.pm.PackageInstaller.SessionParams |
Parameters for creating a new PackageInstaller.Session
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | MODE_FULL_INSTALL | Mode for an install session whose staged APKs should fully replace any existing APKs for the target app. | |||||||||
int | MODE_INHERIT_EXISTING | Mode for an install session that should inherit any existing APKs for the target app, unless they have been explicitly overridden (based on split name) by the session. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct parameters for a new package install session.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Optionally set an icon representing the app being installed.
| |||||||||||
Optionally set a label representing the app being installed.
| |||||||||||
Optionally set the package name of the app being installed.
| |||||||||||
Provide value of
installLocation , which may be used
to determine where the app will be staged.
| |||||||||||
Optionally set the URI where this package was downloaded from.
| |||||||||||
Optionally set the URI that referred you to install this package.
| |||||||||||
Optionally indicate the total size (in bytes) of all APKs that will be
delivered in this session.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Mode for an install session whose staged APKs should fully replace any existing APKs for the target app.
Mode for an install session that should inherit any existing APKs for the target app, unless they have been explicitly overridden (based on split name) by the session. For example, this can be used to add one or more split APKs to an existing installation.
If there are no existing APKs for the target app, this behaves like
MODE_FULL_INSTALL
.
Construct parameters for a new package install session.
mode | one of MODE_FULL_INSTALL or
MODE_INHERIT_EXISTING describing how the session
should interact with an existing app.
|
---|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Optionally set an icon representing the app being installed. This should
be roughly getLauncherLargeIconSize()
in both
dimensions.
Optionally set a label representing the app being installed.
Optionally set the package name of the app being installed. It's strongly recommended that you provide this value when known, so that observers can communicate installing apps to users.
If the APKs staged in the session aren't consistent with this package name, the install will fail. Regardless of this value, all APKs in the app must have the same package name.
Provide value of installLocation
, which may be used
to determine where the app will be staged. Defaults to
INSTALL_LOCATION_INTERNAL_ONLY
.
Optionally set the URI where this package was downloaded from. Used for verification purposes.
Optionally set the URI that referred you to install this package. Used for verification purposes.
Optionally indicate the total size (in bytes) of all APKs that will be delivered in this session. The system may use this to ensure enough disk space exists before proceeding, or to estimate container size for installations living on external storage.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|