LauncherApps.Callback.OnPackagesAvailable Method

Definition

Indicates that one or more packages have become available.

[Android.Runtime.Register("onPackagesAvailable", "([Ljava/lang/String;Landroid/os/UserHandle;Z)V", "GetOnPackagesAvailable_arrayLjava_lang_String_Landroid_os_UserHandle_ZHandler")]
public abstract void OnPackagesAvailable (string[]? packageNames, Android.OS.UserHandle? user, bool replacing);
[<Android.Runtime.Register("onPackagesAvailable", "([Ljava/lang/String;Landroid/os/UserHandle;Z)V", "GetOnPackagesAvailable_arrayLjava_lang_String_Landroid_os_UserHandle_ZHandler")>]
abstract member OnPackagesAvailable : string[] * Android.OS.UserHandle * bool -> unit

Parameters

packageNames
String[]

The names of the packages that have become available.

user
UserHandle

The UserHandle of the profile that generated the change.

replacing
Boolean

Indicates whether these packages are replacing existing ones.

Attributes

Remarks

Indicates that one or more packages have become available. For example, this can happen when a removable storage card has reappeared.

Java documentation for android.content.pm.LauncherApps.Callback.onPackagesAvailable(java.lang.String[], android.os.UserHandle, boolean).

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