PackageInstaller.RegisterSessionCallback 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.
Overloads
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
- Attributes
Remarks
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
- handler
- Handler
to dispatch callback events through, otherwise uses calling thread.
- Attributes
Remarks
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.