ShortcutManager.PushDynamicShortcut(ShortcutInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.