LauncherApps.RegisterPackageInstallerSessionCallback 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.
Register a callback to watch for session lifecycle events in this user and managed profiles.
[Android.Runtime.Register("registerPackageInstallerSessionCallback", "(Ljava/util/concurrent/Executor;Landroid/content/pm/PackageInstaller$SessionCallback;)V", "GetRegisterPackageInstallerSessionCallback_Ljava_util_concurrent_Executor_Landroid_content_pm_PackageInstaller_SessionCallback_Handler", ApiSince=29)]
public virtual void RegisterPackageInstallerSessionCallback (Java.Util.Concurrent.IExecutor executor, Android.Content.PM.PackageInstaller.SessionCallback callback);
[<Android.Runtime.Register("registerPackageInstallerSessionCallback", "(Ljava/util/concurrent/Executor;Landroid/content/pm/PackageInstaller$SessionCallback;)V", "GetRegisterPackageInstallerSessionCallback_Ljava_util_concurrent_Executor_Landroid_content_pm_PackageInstaller_SessionCallback_Handler", ApiSince=29)>]
abstract member RegisterPackageInstallerSessionCallback : Java.Util.Concurrent.IExecutor * Android.Content.PM.PackageInstaller.SessionCallback -> unit
override this.RegisterPackageInstallerSessionCallback : Java.Util.Concurrent.IExecutor * Android.Content.PM.PackageInstaller.SessionCallback -> unit
Parameters
- executor
- IExecutor
Executor
to handle the callbacks, cannot be null.
- callback
- PackageInstaller.SessionCallback
The callback to register.
- 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.