LauncherApps.Callback.OnPackageAdded(String, UserHandle) 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.
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.
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.