Udostępnij za pośrednictwem


ShortcutManager.AddDynamicShortcuts(IList<ShortcutInfo>) Method

Definition

Publish the list of dynamic shortcuts.

[Android.Runtime.Register("addDynamicShortcuts", "(Ljava/util/List;)Z", "GetAddDynamicShortcuts_Ljava_util_List_Handler", ApiSince=25)]
public virtual bool AddDynamicShortcuts (System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> shortcutInfoList);
[<Android.Runtime.Register("addDynamicShortcuts", "(Ljava/util/List;)Z", "GetAddDynamicShortcuts_Ljava_util_List_Handler", ApiSince=25)>]
abstract member AddDynamicShortcuts : System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> -> bool
override this.AddDynamicShortcuts : 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 dynamic shortcuts. If there are already dynamic or pinned shortcuts with the same IDs, each mutable shortcut is updated.

This API will be rate-limited.

Java documentation for android.content.pm.ShortcutManager.addDynamicShortcuts(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