LauncherApps.ShortcutQuery.FlagGetKeyFieldsOnly Field
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.
Caution
This constant will be removed in the future version. Use Android.Content.PM.LauncherAppsShortcutQueryFlags enum directly instead of this field.
Requests "key" fields only.
[Android.Runtime.Register("FLAG_GET_KEY_FIELDS_ONLY", 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 FlagGetKeyFieldsOnly = 4;
[<Android.Runtime.Register("FLAG_GET_KEY_FIELDS_ONLY", 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 FlagGetKeyFieldsOnly : Android.Content.PM.LauncherAppsShortcutQueryFlags
Field Value
Value = 4- Attributes
Remarks
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.
Java documentation for android.content.pm.LauncherApps.ShortcutQuery.FLAG_GET_KEY_FIELDS_ONLY
.
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.