次の方法で共有


ShortcutManager.PushDynamicShortcut(ShortcutInfo) Method

Definition

Publish a single dynamic shortcut.

[Android.Runtime.Register("pushDynamicShortcut", "(Landroid/content/pm/ShortcutInfo;)V", "GetPushDynamicShortcut_Landroid_content_pm_ShortcutInfo_Handler", ApiSince=30)]
public virtual void PushDynamicShortcut (Android.Content.PM.ShortcutInfo shortcut);
[<Android.Runtime.Register("pushDynamicShortcut", "(Landroid/content/pm/ShortcutInfo;)V", "GetPushDynamicShortcut_Landroid_content_pm_ShortcutInfo_Handler", ApiSince=30)>]
abstract member PushDynamicShortcut : Android.Content.PM.ShortcutInfo -> unit
override this.PushDynamicShortcut : Android.Content.PM.ShortcutInfo -> unit

Parameters

shortcut
ShortcutInfo
Attributes

Remarks

Publish a single dynamic shortcut. If there are already dynamic or pinned shortcuts with the same ID, each mutable shortcut is updated.

This method is useful when posting notifications which are tagged with shortcut IDs; In order to make sure shortcuts exist and are up-to-date, without the need to explicitly handle the shortcut count limit.

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