WKInterfaceController.AddMenuItem 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.
Overloads
AddMenuItem(String, String, Selector) |
Adds an action to the context menu with the provide values. |
AddMenuItem(String, String, Action) |
Adds an action to the context menu with the provide values. |
AddMenuItem(UIImage, String, Selector) |
Adds an action to the context menu with the provide values. |
AddMenuItem(UIImage, String, Action) |
Adds an action to the context menu with the provide values. |
AddMenuItem(WKMenuItemIcon, String, Selector) |
Adds an action to the context menu with the provide values. |
AddMenuItem(WKMenuItemIcon, String, Action) |
Adds an action to the context menu with the provide values. |
AddMenuItem(String, String, Selector)
Adds an action to the context menu with the provide values.
[Foundation.Export("addMenuItemWithImageNamed:title:action:")]
public virtual void AddMenuItem (string imageName, string title, ObjCRuntime.Selector action);
abstract member AddMenuItem : string * string * ObjCRuntime.Selector -> unit
override this.AddMenuItem : string * string * ObjCRuntime.Selector -> unit
Parameters
- imageName
- String
- title
- String
- action
- Selector
- Attributes
Applies to
AddMenuItem(String, String, Action)
AddMenuItem(UIImage, String, Selector)
Adds an action to the context menu with the provide values.
[Foundation.Export("addMenuItemWithImage:title:action:")]
public virtual void AddMenuItem (UIKit.UIImage image, string title, ObjCRuntime.Selector action);
abstract member AddMenuItem : UIKit.UIImage * string * ObjCRuntime.Selector -> unit
override this.AddMenuItem : UIKit.UIImage * string * ObjCRuntime.Selector -> unit
Parameters
- image
- UIImage
- title
- String
- action
- Selector
- Attributes
Applies to
AddMenuItem(UIImage, String, Action)
AddMenuItem(WKMenuItemIcon, String, Selector)
Adds an action to the context menu with the provide values.
[Foundation.Export("addMenuItemWithItemIcon:title:action:")]
public virtual void AddMenuItem (WatchKit.WKMenuItemIcon itemIcon, string title, ObjCRuntime.Selector action);
abstract member AddMenuItem : WatchKit.WKMenuItemIcon * string * ObjCRuntime.Selector -> unit
override this.AddMenuItem : WatchKit.WKMenuItemIcon * string * ObjCRuntime.Selector -> unit
Parameters
- itemIcon
- WKMenuItemIcon
- title
- String
- action
- Selector
- Attributes
Applies to
AddMenuItem(WKMenuItemIcon, String, Action)
Adds an action to the context menu with the provide values.
public void AddMenuItem (WatchKit.WKMenuItemIcon itemIcon, string title, Action action);
member this.AddMenuItem : WatchKit.WKMenuItemIcon * string * Action -> unit
Parameters
- itemIcon
- WKMenuItemIcon
- title
- String
- action
- Action