Share via


LauncherApps.Callback.OnPackagesUnavailable Method

Definition

Indicates that one or more packages have become unavailable.

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

Parameters

packageNames
String[]

The names of the packages that have become unavailable.

user
UserHandle

The UserHandle of the profile that generated the change.

replacing
Boolean

Indicates whether the packages are about to be replaced with new versions.

Attributes

Remarks

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

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