Udostępnij za pośrednictwem


ShortcutManager.PinnedShortcuts Property

Definition

Return all pinned shortcuts from the caller app.

public virtual System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> PinnedShortcuts { [Android.Runtime.Register("getPinnedShortcuts", "()Ljava/util/List;", "GetGetPinnedShortcutsHandler", ApiSince=25)] get; }
[<get: Android.Runtime.Register("getPinnedShortcuts", "()Ljava/util/List;", "GetGetPinnedShortcutsHandler", ApiSince=25)>]
member this.PinnedShortcuts : System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo>

Property Value

Attributes

Remarks

Return all pinned shortcuts from the caller app.

This API is intended to be used for examining what shortcuts are currently published. Re-publishing returned ShortcutInfos via APIs such as #setDynamicShortcuts(List) may cause loss of information such as icons.

Java documentation for android.content.pm.ShortcutManager.getPinnedShortcuts().

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