Udostępnij za pośrednictwem


LauncherApps.ShortcutQuery.FlagMatchPinned Field

Definition

Caution

This constant will be removed in the future version. Use Android.Content.PM.LauncherAppsShortcutQueryFlags enum directly instead of this field.

Include pinned shortcuts in the result.

[Android.Runtime.Register("FLAG_MATCH_PINNED", ApiSince=25)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.LauncherAppsShortcutQueryFlags enum directly instead of this field.", true)]
public const Android.Content.PM.LauncherAppsShortcutQueryFlags FlagMatchPinned = 2;
[<Android.Runtime.Register("FLAG_MATCH_PINNED", ApiSince=25)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.LauncherAppsShortcutQueryFlags enum directly instead of this field.", true)>]
val mutable FlagMatchPinned : Android.Content.PM.LauncherAppsShortcutQueryFlags

Field Value

Value = 2
Attributes

Remarks

Include pinned shortcuts in the result.

If you are the selected assistant app, and wishes to fetch all shortcuts that the user owns on the launcher (or by other launchers, in case the user has multiple), use #FLAG_MATCH_PINNED_BY_ANY_LAUNCHER instead.

If you're a regular launcher app, there's no way to get shortcuts pinned by other launchers, and #FLAG_MATCH_PINNED_BY_ANY_LAUNCHER will be ignored. So use this flag to get own pinned shortcuts.

Java documentation for android.content.pm.LauncherApps.ShortcutQuery.FLAG_MATCH_PINNED.

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