ShortcutManager.GetShortcuts(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳 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。
<p>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 所創建與分享的作品,並依授權條款所描述的使用進行修改。