語言

ShortcutManager.GetShortcuts(Int32) 方法

定義

回傳 ShortcutInfo該匹配 matchFlags。

[Android.Runtime.Register("getShortcuts", "(I)Ljava/util/List;", "GetGetShortcuts_IHandler", ApiSince=30)]
public virtual System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> GetShortcuts(int matchFlags);
[<Android.Runtime.Register("getShortcuts", "(I)Ljava/util/List;", "GetGetShortcuts_IHandler", ApiSince=30)>]
abstract member GetShortcuts : int -> System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo>
override this.GetShortcuts : int -> System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo>

參數

matchFlags
Int32

結果包含符合此標記的捷徑。 任意組合:<ul<>li<#FLAG_MATCH_MANIFEST>li<#FLAG_MATCH_DYNAMIC>li<>#FLAG_MATCH_PINNEDli>#FLAG_MATCH_CACHED</ul>

傳回

與旗幟相符的S列表 ShortcutInfo。

        &lt;p&gt;At least one of the <code data-dev-comment-type="c">MATCH</code> flags should be set. Otherwise no shortcuts will be
        returned.
屬性

備註

回傳 ShortcutInfo該匹配 matchFlags。

Java 文件 android.content.pm.ShortcutManager.getShortcuts(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於