Condividi tramite


LauncherApps.Callback.OnPackageRemoved(String, UserHandle) Method

Definition

Indicates that a package was removed from the specified profile.

[Android.Runtime.Register("onPackageRemoved", "(Ljava/lang/String;Landroid/os/UserHandle;)V", "GetOnPackageRemoved_Ljava_lang_String_Landroid_os_UserHandle_Handler")]
public abstract void OnPackageRemoved (string? packageName, Android.OS.UserHandle? user);
[<Android.Runtime.Register("onPackageRemoved", "(Ljava/lang/String;Landroid/os/UserHandle;)V", "GetOnPackageRemoved_Ljava_lang_String_Landroid_os_UserHandle_Handler")>]
abstract member OnPackageRemoved : string * Android.OS.UserHandle -> unit

Parameters

packageName
String

The name of the package that was removed.

user
UserHandle

The UserHandle of the profile that generated the change.

Attributes

Remarks

Indicates that a package was removed from the specified profile.

If a package is removed while being updated onPackageChanged will be called instead.

Java documentation for android.content.pm.LauncherApps.Callback.onPackageRemoved(java.lang.String, android.os.UserHandle).

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