Udostępnij za pośrednictwem


LauncherApps.GetShortcuts(LauncherApps+ShortcutQuery, UserHandle) Method

Definition

Returns ShortcutInfos that match query.

[Android.Runtime.Register("getShortcuts", "(Landroid/content/pm/LauncherApps$ShortcutQuery;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetShortcuts_Landroid_content_pm_LauncherApps_ShortcutQuery_Landroid_os_UserHandle_Handler", ApiSince=25)]
public virtual System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo>? GetShortcuts (Android.Content.PM.LauncherApps.ShortcutQuery query, Android.OS.UserHandle user);
[<Android.Runtime.Register("getShortcuts", "(Landroid/content/pm/LauncherApps$ShortcutQuery;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetShortcuts_Landroid_content_pm_LauncherApps_ShortcutQuery_Landroid_os_UserHandle_Handler", ApiSince=25)>]
abstract member GetShortcuts : Android.Content.PM.LauncherApps.ShortcutQuery * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo>
override this.GetShortcuts : Android.Content.PM.LauncherApps.ShortcutQuery * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo>

Parameters

query
LauncherApps.ShortcutQuery

result includes shortcuts matching this query.

user
UserHandle

The UserHandle of the profile.

Returns

the IDs of ShortcutInfos that match the query.

Attributes

Remarks

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