Lenguaje

LauncherApps.GetShortcutIntent(String, String, Bundle, UserHandle) Método

Definición

Devuelve PendingIntent asociado con el acceso directo especificado.

[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

Parámetros

packageName
String

PackageName del acceso directo

shortcutId
String

Identificador del acceso directo

opts
Bundle

Este parámetro ya no se admite

user
UserHandle

UserHandle del perfil

Devoluciones

Atributos

Comentarios

Devuelve PendingIntent asociado con el acceso directo especificado.

Java documentación para android.content.pm.LauncherApps.getShortcutIntent(java.lang.String, java.lang.String, android.os.Bundle, android.os.UserHandle).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a