LauncherAppsShortcutQueryFlags Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum LauncherAppsShortcutQueryFlags
[<System.Flags>]
type LauncherAppsShortcutQueryFlags =
- Inheritance
-
LauncherAppsShortcutQueryFlags
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| None | 0 | |
| MatchDynamic | 1 | Include dynamic shortcuts in the result. Android reference for 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. |
| MatchPinned | 2 | 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. Android reference for 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. |
| GetKeyFieldsOnly | 4 | Requests "key" fields only. See ShortcutInfo.hasKeyFieldsOnly()'s javadoc to see which fields fields "key". This allows quicker access to shortcut information in order to determine whether the caller's in-memory cache needs to be updated. Typically, launcher applications cache all or most shortcut information in memory in order to show shortcuts without a delay. When a given launcher application wants to update its cache, such as when its process restarts, it can fetch shortcut information with this flag. The application can then check ShortcutInfo.getLastChangedTimestamp() for each shortcut, fetching a shortcut's non-key information only if that shortcut has been updated. Android reference for 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. |
| MatchManifest | 8 | Include manifest shortcuts in the result. Android reference for 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. |
| MatchCached | 16 | Include cached shortcuts in the result. Android reference for 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. |
| MatchPinnedByAnyLauncher | 1024 | 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. 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. |
Remarks
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.