Compartir a través de


ShortcutInfo.HasKeyFieldsOnly Property

Definition

Return whether a shortcut only contains "key" information only or not.

public bool HasKeyFieldsOnly { [Android.Runtime.Register("hasKeyFieldsOnly", "()Z", "", ApiSince=25)] get; }
[<get: Android.Runtime.Register("hasKeyFieldsOnly", "()Z", "", ApiSince=25)>]
member this.HasKeyFieldsOnly : bool

Property Value

Attributes

Remarks

Return whether a shortcut only contains "key" information only or not. If true, only the following fields are available. <ul> <li>#getId()<li>#getPackage()<li>#getActivity()<li>#getLastChangedTimestamp()<li>#isDynamic()<li>#isPinned()<li>#isDeclaredInManifest()<li>#isImmutable()<li>#isEnabled()<li>#getUserHandle()</ul>

For performance reasons, shortcuts passed to LauncherApps.Callback#onShortcutsChanged(String, List, UserHandle) as well as those returned from LauncherApps#getShortcuts(ShortcutQuery, UserHandle) while using the ShortcutQuery#FLAG_GET_KEY_FIELDS_ONLY option contain only key information.

Java documentation for android.content.pm.ShortcutInfo.hasKeyFieldsOnly().

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