java.lang.Object | |
↳ | android.content.pm.PackageInstaller.SessionInfo |
Details for an active install session.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return an Intent that can be started to view details about this install
session.
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Return an icon representing the app being installed.
| |||||||||||
Return a label representing the app being installed.
| |||||||||||
Return the package name this session is working with.
| |||||||||||
Return the package name of the app that owns this session.
| |||||||||||
Return current overall progress of this session, between 0 and 1.
| |||||||||||
Return the ID for this session.
| |||||||||||
Return if this session is currently active.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Return an Intent that can be started to view details about this install session. This may surface actions such as pause, resume, or cancel.
In some cases, a matching Activity may not exist, so ensure you safeguard against this.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Return an icon representing the app being installed. May be null
if unavailable.
Return a label representing the app being installed. May be null
if unavailable.
Return the package name this session is working with. May be null
if unknown.
Return the package name of the app that owns this session.
Return current overall progress of this session, between 0 and 1.
Note that this progress may not directly correspond to the value
reported by
setStagingProgress(float)
, as the
system may carve out a portion of the overall progress to represent
its own internal installation work.
Return if this session is currently active.
A session is considered active whenever there is ongoing forward
progress being made, such as the installer holding an open
PackageInstaller.Session
instance while streaming data into place, or the
system optimizing code as the result of
commit(IntentSender)
.
If the installer closes the PackageInstaller.Session
without committing, the
session is considered inactive until the installer opens the session
again.
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 .
|