LauncherApps.StartShortcut メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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 オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。
適用対象
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 オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。