Language

LauncherApps.ShortcutQuery.SetQueryFlags Method

Definition

Set query options.

[Android.Runtime.Register("setQueryFlags", "(I)Landroid/content/pm/LauncherApps$ShortcutQuery;", "GetSetQueryFlags_IHandler", ApiSince=25)]
public virtual Android.Content.PM.LauncherApps.ShortcutQuery? SetQueryFlags(Android.Content.PM.LauncherAppsShortcutQueryFlags queryFlags);
[<Android.Runtime.Register("setQueryFlags", "(I)Landroid/content/pm/LauncherApps$ShortcutQuery;", "GetSetQueryFlags_IHandler", ApiSince=25)>]
abstract member SetQueryFlags : Android.Content.PM.LauncherAppsShortcutQueryFlags -> Android.Content.PM.LauncherApps.ShortcutQuery
override this.SetQueryFlags : Android.Content.PM.LauncherAppsShortcutQueryFlags -> Android.Content.PM.LauncherApps.ShortcutQuery

Parameters

queryFlags
LauncherAppsShortcutQueryFlags

Value is either 0 or a combination of the following: FLAG_MATCH_DYNAMIC; FLAG_MATCH_PINNED; FLAG_MATCH_MANIFEST; FLAG_MATCH_CACHED; FLAG_MATCH_PINNED_BY_ANY_LAUNCHER; FLAG_GET_KEY_FIELDS_ONLY

Returns

Attributes

Remarks

Set query options. At least one of the MATCH flags should be set. Otherwise, no shortcuts will be returned.

Android reference for android.content.pm.LauncherApps.ShortcutQuery.setQueryFlags.

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