UIAlertAction.Create 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.
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
The title for the action to be displayed
- style
- UIAlertActionStyle
The style
- handler
- Action<UIAlertAction>
The method to invoke when the action is tapped.
This parameter can be null
.
Returns
New instance of an alert action
- Attributes