다음을 통해 공유


LauncherApps.ShortcutQuery.FlagMatchPinnedByAnyLauncher Field

Definition

Caution

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

Include all pinned shortcuts by any launchers, not just by the caller, in the result.

[Android.Runtime.Register("FLAG_MATCH_PINNED_BY_ANY_LAUNCHER", ApiSince=28)]
[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 FlagMatchPinnedByAnyLauncher = 1024;
[<Android.Runtime.Register("FLAG_MATCH_PINNED_BY_ANY_LAUNCHER", ApiSince=28)>]
[<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 FlagMatchPinnedByAnyLauncher : Android.Content.PM.LauncherAppsShortcutQueryFlags

Field Value

Value = 1024
Attributes

Remarks

Include all pinned shortcuts by any launchers, not just by the caller, in the result.

The caller must be the selected assistant app to use this flag, or have the system ACCESS_SHORTCUTS permission.

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 (or any app that's not the selected assistant app) then this flag will be ignored.

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

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