PackageInstaller.SessionCallback.OnActiveChanged(Int32, Boolean) Method
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.
Active state for session has been changed.
[Android.Runtime.Register("onActiveChanged", "(IZ)V", "GetOnActiveChanged_IZHandler")]
public abstract void OnActiveChanged (int sessionId, bool active);
[<Android.Runtime.Register("onActiveChanged", "(IZ)V", "GetOnActiveChanged_IZHandler")>]
abstract member OnActiveChanged : int * bool -> unit
Parameters
- sessionId
- Int32
- active
- Boolean
- Attributes
Remarks
Active state for session has been changed.
A session is considered active whenever there is ongoing forward progress being made, such as the installer holding an open Session
instance while streaming data into place, or the system optimizing code as the result of Session#commit(IntentSender)
.
If the installer closes the Session
without committing, the session is considered inactive until the installer opens the session again.
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.