PackageInstaller.SessionInfo.IsStagedSessionActive Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true
if this session is an active staged session.
public virtual bool IsStagedSessionActive { [Android.Runtime.Register("isStagedSessionActive", "()Z", "GetIsStagedSessionActiveHandler", ApiSince=30)] get; }
[<get: Android.Runtime.Register("isStagedSessionActive", "()Z", "GetIsStagedSessionActiveHandler", ApiSince=30)>]
member this.IsStagedSessionActive : bool
Property Value
- Attributes
Remarks
Returns true
if this session is an active staged session.
We consider a session active if it has been committed and it is either pending verification, or will be applied at next reboot.
Staged session is active iff: <ul> <li>It is committed, i.e. SessionInfo#isCommitted()
is true
, and <li>it is not applied, i.e. SessionInfo#isStagedSessionApplied()
is false
, and <li>it is not failed, i.e. SessionInfo#isStagedSessionFailed()
is false
. </ul>
In case of a multi-package session, reasoning above is applied to the parent session, since that is the one that should have been Session#commit committed
.
Java documentation for android.content.pm.PackageInstaller.SessionInfo.isStagedSessionActive()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.