Udostępnij za pośrednictwem


ShortcutManager.SetDynamicShortcuts(IList<ShortcutInfo>) Method

Definition

Publish the list of shortcuts.

[Android.Runtime.Register("setDynamicShortcuts", "(Ljava/util/List;)Z", "GetSetDynamicShortcuts_Ljava_util_List_Handler", ApiSince=25)]
public virtual bool SetDynamicShortcuts (System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> shortcutInfoList);
[<Android.Runtime.Register("setDynamicShortcuts", "(Ljava/util/List;)Z", "GetSetDynamicShortcuts_Ljava_util_List_Handler", ApiSince=25)>]
abstract member SetDynamicShortcuts : System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> -> bool
override this.SetDynamicShortcuts : System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> -> bool

Parameters

shortcutInfoList
IList<ShortcutInfo>

Returns

true if the call has succeeded. false if the call is rate-limited.

Attributes

Remarks

Publish the list of shortcuts. All existing dynamic shortcuts from the caller app will be replaced. If there are already pinned shortcuts with the same IDs, the mutable pinned shortcuts are updated.

This API will be rate-limited.

Java documentation for android.content.pm.ShortcutManager.setDynamicShortcuts(java.util.List<android.content.pm.ShortcutInfo>).

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