Freigeben über


LauncherApps.Callback.OnPackageAdded(String, UserHandle) Method

Definition

Indicates that a package was added to the specified profile.

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

Parameters

packageName
String

The name of the package that was added.

user
UserHandle

The UserHandle of the profile that generated the change.

Attributes

Remarks

Indicates that a package was added to the specified profile.

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

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