UIContextualAction.FromContextualActionStyle Method

Definition

Creates a new contextual action with the specified styel and title.

[Foundation.Export("contextualActionWithStyle:title:handler:")]
public static UIKit.UIContextualAction FromContextualActionStyle (UIKit.UIContextualActionStyle style, string title, UIKit.UIContextualActionHandler handler);
static member FromContextualActionStyle : UIKit.UIContextualActionStyle * string * UIKit.UIContextualActionHandler -> UIKit.UIContextualAction

Parameters

style
UIContextualActionStyle

The contextual action style.

title
String

The button title.

This parameter can be null.

handler
UIContextualActionHandler

The action to run when the user selects the action.

Returns

Attributes

Applies to