WKInterfaceController.ClearAllMenuItems 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.
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.