Dela via


PackageInstaller.SessionCallback.OnActiveChanged(Int32, Boolean) Method

Definition

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.

Java documentation for android.content.pm.PackageInstaller.SessionCallback.onActiveChanged(int, boolean).

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.

Applies to