Sdílet prostřednictvím


LauncherApps.Callback.OnPackageChanged(String, UserHandle) Method

Definition

Indicates that a package was modified in the specified profile.

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

Parameters

packageName
String

The name of the package that has changed.

user
UserHandle

The UserHandle of the profile that generated the change.

Attributes

Remarks

Indicates that a package was modified in the specified profile. This can happen, for example, when the package is updated or when one or more components are enabled or disabled.

Java documentation for android.content.pm.LauncherApps.Callback.onPackageChanged(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