LauncherApps.PinShortcuts(String, IList<String>, UserHandle) Method

Definition

Pin shortcuts on a package.

[Android.Runtime.Register("pinShortcuts", "(Ljava/lang/String;Ljava/util/List;Landroid/os/UserHandle;)V", "GetPinShortcuts_Ljava_lang_String_Ljava_util_List_Landroid_os_UserHandle_Handler", ApiSince=25)]
public virtual void PinShortcuts (string packageName, System.Collections.Generic.IList<string> shortcutIds, Android.OS.UserHandle user);
[<Android.Runtime.Register("pinShortcuts", "(Ljava/lang/String;Ljava/util/List;Landroid/os/UserHandle;)V", "GetPinShortcuts_Ljava_lang_String_Ljava_util_List_Landroid_os_UserHandle_Handler", ApiSince=25)>]
abstract member PinShortcuts : string * System.Collections.Generic.IList<string> * Android.OS.UserHandle -> unit
override this.PinShortcuts : string * System.Collections.Generic.IList<string> * Android.OS.UserHandle -> unit

Parameters

packageName
String

The target package name.

shortcutIds
IList<String>

The IDs of the shortcut to be pinned.

user
UserHandle

The UserHandle of the profile.

Attributes

Remarks

Java documentation for android.content.pm.LauncherApps.pinShortcuts(java.lang.String, java.util.List<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