UIAlertAction.Create(String, UIAlertActionStyle, Action<UIAlertAction>) UIAlertAction.Create(String, UIAlertActionStyle, Action<UIAlertAction>) Method

Definition

Creates an action with the specified title, style and event handler.

[Foundation.Export("actionWithTitle:style:handler:")]
public static UIKit.UIAlertAction Create (string title, UIKit.UIAlertActionStyle style, Action<UIKit.UIAlertAction> handler);
static member Create : string * UIKit.UIAlertActionStyle * Action<UIKit.UIAlertAction> -> UIKit.UIAlertAction

Parameters

title
String String

The title for the action to be displayed

handler
Action<UIAlertAction>

The method to invoke when the action is tapped. 

This parameter can be null.

Returns

New instance of an alert action

Remarks

Applies to