UIContextualAction.FromContextualActionStyle(UIContextualActionStyle, String, UIContextualActionHandler) UIContextualAction.FromContextualActionStyle(UIContextualActionStyle, String, UIContextualActionHandler) 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 UIContextualActionStyle

The contextual action style.

title
String String

The button title.

This parameter can be null.

handler
UIContextualActionHandler UIContextualActionHandler

The action to run when the user selects the action.

Returns

Applies to