LauncherApps.GetShortcutIntent(String, String, Bundle, UserHandle) Method

Definition

Returns PendingIntent associated with specified shortcut.

[Android.Runtime.Register("getShortcutIntent", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/UserHandle;)Landroid/app/PendingIntent;", "GetGetShortcutIntent_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Landroid_os_UserHandle_Handler", ApiSince=31)]
public virtual Android.App.PendingIntent? GetShortcutIntent (string packageName, string shortcutId, Android.OS.Bundle? opts, Android.OS.UserHandle user);
[<Android.Runtime.Register("getShortcutIntent", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/UserHandle;)Landroid/app/PendingIntent;", "GetGetShortcutIntent_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Landroid_os_UserHandle_Handler", ApiSince=31)>]
abstract member GetShortcutIntent : string * string * Android.OS.Bundle * Android.OS.UserHandle -> Android.App.PendingIntent
override this.GetShortcutIntent : string * string * Android.OS.Bundle * Android.OS.UserHandle -> Android.App.PendingIntent

Parameters

packageName
String

The packageName of the shortcut

shortcutId
String

The id of the shortcut

opts
Bundle

This parameter is no longer supported

user
UserHandle

The UserHandle of the profile

Returns

Attributes

Remarks

Returns PendingIntent associated with specified shortcut.

Java documentation for android.content.pm.LauncherApps.getShortcutIntent(java.lang.String, java.lang.String, android.os.Bundle, 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