Language

PackageInstaller.RegisterSessionCallback Method

Definition

Overloads

Name Description
RegisterSessionCallback(PackageInstaller+SessionCallback)

Register to watch for session lifecycle events.

RegisterSessionCallback(PackageInstaller+SessionCallback, Handler)

Register to watch for session lifecycle events.

RegisterSessionCallback(PackageInstaller+SessionCallback)

Register to watch for session lifecycle events.

[Android.Runtime.Register("registerSessionCallback", "(Landroid/content/pm/PackageInstaller$SessionCallback;)V", "GetRegisterSessionCallback_Landroid_content_pm_PackageInstaller_SessionCallback_Handler")]
public virtual void RegisterSessionCallback(Android.Content.PM.PackageInstaller.SessionCallback callback);
[<Android.Runtime.Register("registerSessionCallback", "(Landroid/content/pm/PackageInstaller$SessionCallback;)V", "GetRegisterSessionCallback_Landroid_content_pm_PackageInstaller_SessionCallback_Handler")>]
abstract member RegisterSessionCallback : Android.Content.PM.PackageInstaller.SessionCallback -> unit
override this.RegisterSessionCallback : Android.Content.PM.PackageInstaller.SessionCallback -> unit

Parameters

callback
PackageInstaller.SessionCallback

The callback implementation that receives session-lifecycle notifications.

Attributes

Remarks

Java documentation for android.content.pm.PackageInstaller.registerSessionCallback(android.content.pm.SessionCallback).

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

RegisterSessionCallback(PackageInstaller+SessionCallback, Handler)

Register to watch for session lifecycle events.

[Android.Runtime.Register("registerSessionCallback", "(Landroid/content/pm/PackageInstaller$SessionCallback;Landroid/os/Handler;)V", "GetRegisterSessionCallback_Landroid_content_pm_PackageInstaller_SessionCallback_Landroid_os_Handler_Handler")]
public virtual void RegisterSessionCallback(Android.Content.PM.PackageInstaller.SessionCallback callback, Android.OS.Handler handler);
[<Android.Runtime.Register("registerSessionCallback", "(Landroid/content/pm/PackageInstaller$SessionCallback;Landroid/os/Handler;)V", "GetRegisterSessionCallback_Landroid_content_pm_PackageInstaller_SessionCallback_Landroid_os_Handler_Handler")>]
abstract member RegisterSessionCallback : Android.Content.PM.PackageInstaller.SessionCallback * Android.OS.Handler -> unit
override this.RegisterSessionCallback : Android.Content.PM.PackageInstaller.SessionCallback * Android.OS.Handler -> unit

Parameters

callback
PackageInstaller.SessionCallback

The callback implementation that receives session-lifecycle notifications.

handler
Handler

to dispatch callback events through, otherwise uses calling thread.

Attributes

Remarks

Java documentation for android.content.pm.PackageInstaller.registerSessionCallback(android.content.pm.SessionCallback).

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