LauncherApps.GetShortcutConfigActivityList(String, UserHandle) Method

Definition

Retrieves a list of config activities for creating ShortcutInfo.

[Android.Runtime.Register("getShortcutConfigActivityList", "(Ljava/lang/String;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetShortcutConfigActivityList_Ljava_lang_String_Landroid_os_UserHandle_Handler", ApiSince=26)]
public virtual System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo>? GetShortcutConfigActivityList (string? packageName, Android.OS.UserHandle user);
[<Android.Runtime.Register("getShortcutConfigActivityList", "(Ljava/lang/String;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetShortcutConfigActivityList_Ljava_lang_String_Landroid_os_UserHandle_Handler", ApiSince=26)>]
abstract member GetShortcutConfigActivityList : string * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo>
override this.GetShortcutConfigActivityList : string * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo>

Parameters

packageName
String

The specific package to query. If null, it checks all installed packages in the profile.

user
UserHandle

The UserHandle of the profile.

Returns

List of config activities. Can be an empty list but will not be null.

Attributes

Remarks

Retrieves a list of config activities for creating ShortcutInfo.

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