UIKit.UIAlertAction.Create Method
Creates an action with the specified title, style and event handler.

Syntax

[Foundation.Export("actionWithTitle:style:handler:")]
public static UIAlertAction Create (string title, UIAlertActionStyle style, [ObjCRuntime.BlockProxy(typeof(ObjCRuntime.Trampolines/NIDActionArity1V2))] Action<UIAlertAction> handler)

Parameters

title
The title for the action to be displayed
style
The style
handler

The method to invoke when the action is tapped. 

This parameter can be null.

Returns

New instance of an alert action

Remarks

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0