WKInterfaceController.AddMenuItem Method

Definition

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

AddMenuItem(String, String, Action)

Adds an action to the context menu with the provide values.

public void AddMenuItem (string imageName, string title, Action action);
member this.AddMenuItem : string * string * Action -> unit

Parameters

imageName
String
title
String
action
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

AddMenuItem(UIImage, String, Action)

Adds an action to the context menu with the provide values.

public void AddMenuItem (UIKit.UIImage image, string title, Action action);
member this.AddMenuItem : UIKit.UIImage * string * Action -> unit

Parameters

image
UIImage
title
String
action
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

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

Applies to