LauncherApps.StartShortcut メソッド

定義

オーバーロード

StartShortcut(ShortcutInfo, Rect, Bundle)

ショートカットを起動します。

StartShortcut(String, String, Rect, Bundle, UserHandle)

ショートカットを開始します。

StartShortcut(ShortcutInfo, Rect, Bundle)

ショートカットを起動します。

[Android.Runtime.Register("startShortcut", "(Landroid/content/pm/ShortcutInfo;Landroid/graphics/Rect;Landroid/os/Bundle;)V", "GetStartShortcut_Landroid_content_pm_ShortcutInfo_Landroid_graphics_Rect_Landroid_os_Bundle_Handler", ApiSince=25)]
public virtual void StartShortcut (Android.Content.PM.ShortcutInfo shortcut, Android.Graphics.Rect? sourceBounds, Android.OS.Bundle? startActivityOptions);
[<Android.Runtime.Register("startShortcut", "(Landroid/content/pm/ShortcutInfo;Landroid/graphics/Rect;Landroid/os/Bundle;)V", "GetStartShortcut_Landroid_content_pm_ShortcutInfo_Landroid_graphics_Rect_Landroid_os_Bundle_Handler", ApiSince=25)>]
abstract member StartShortcut : Android.Content.PM.ShortcutInfo * Android.Graphics.Rect * Android.OS.Bundle -> unit
override this.StartShortcut : Android.Content.PM.ShortcutInfo * Android.Graphics.Rect * Android.OS.Bundle -> unit

パラメーター

shortcut
ShortcutInfo

ターゲット ショートカット。

sourceBounds
Rect

クリックしたアイコンのソース境界を含む Rect。

startActivityOptions
Bundle

startActivity に渡すオプション。

属性

注釈

ショートカットを起動します。

呼び出し元のランチャー アプリケーションは、 で定義されているように、ショートカット情報への #hasShortcutHostPermission()アクセスを許可する必要があります。

android.content.pm.LauncherApps.startShortcut(android.content.pm.ShortcutInfo, android.graphics.Rect, android.os.Bundle)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象

StartShortcut(String, String, Rect, Bundle, UserHandle)

ショートカットを開始します。

[Android.Runtime.Register("startShortcut", "(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Rect;Landroid/os/Bundle;Landroid/os/UserHandle;)V", "GetStartShortcut_Ljava_lang_String_Ljava_lang_String_Landroid_graphics_Rect_Landroid_os_Bundle_Landroid_os_UserHandle_Handler", ApiSince=25)]
public virtual void StartShortcut (string packageName, string shortcutId, Android.Graphics.Rect? sourceBounds, Android.OS.Bundle? startActivityOptions, Android.OS.UserHandle user);
[<Android.Runtime.Register("startShortcut", "(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Rect;Landroid/os/Bundle;Landroid/os/UserHandle;)V", "GetStartShortcut_Ljava_lang_String_Ljava_lang_String_Landroid_graphics_Rect_Landroid_os_Bundle_Landroid_os_UserHandle_Handler", ApiSince=25)>]
abstract member StartShortcut : string * string * Android.Graphics.Rect * Android.OS.Bundle * Android.OS.UserHandle -> unit
override this.StartShortcut : string * string * Android.Graphics.Rect * Android.OS.Bundle * Android.OS.UserHandle -> unit

パラメーター

packageName
String

ターゲット ショートカット パッケージ名。

shortcutId
String

ターゲット ショートカット ID。

sourceBounds
Rect

クリックしたアイコンのソース境界を含む Rect。

startActivityOptions
Bundle

startActivity に渡すオプション。

user
UserHandle

プロファイルの UserHandle。

属性

注釈

ショートカットを開始します。

呼び出し元のランチャー アプリケーションは、 で定義されているように、ショートカット情報への #hasShortcutHostPermission()アクセスを許可する必要があります。

android.content.pm.LauncherApps.startShortcut(java.lang.String, java.lang.String, android.graphics.Rect, android.os.Bundle, android.os.UserHandle)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象