Condividi tramite


ShortcutManager.GetShortcuts(Int32) Method

Definition

Returns ShortcutInfos that match 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>

Parameters

matchFlags
Int32

result includes shortcuts matching this flags. Any combination of: <ul> <li>#FLAG_MATCH_MANIFEST<li>#FLAG_MATCH_DYNAMIC<li>#FLAG_MATCH_PINNED<li>#FLAG_MATCH_CACHED</ul>

Returns

list of ShortcutInfos that match the flag.

        &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.
Attributes

Remarks

Returns ShortcutInfos that match matchFlags.

Java documentation for android.content.pm.ShortcutManager.getShortcuts(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to