Edit

Share via


WKInterfaceController.ClearAllMenuItems Method

Definition

Removes programmatically-added items from the context menu.

[Foundation.Export("clearAllMenuItems")]
public virtual void ClearAllMenuItems ();
abstract member ClearAllMenuItems : unit -> unit
override this.ClearAllMenuItems : unit -> unit
Attributes

Remarks

This method does not remove menu items specified in the Watch App's storyboard. It only removes items added with AddMenuItem(WKMenuItemIcon, String, Action) method calls.

Applies to