iOS Guides | Samples

UIKit.UIContextualAction Class

A context action for a table row.

See Also: UIContextualAction


[Foundation.Register("UIContextualAction", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public class UIContextualAction : NSObject


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

The members of UIKit.UIContextualAction are listed below.

See Also: NSObject

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

BackgroundColorUIColor. Gets or sets the action button color.
ClassHandleIntPtr. The handle for this class.
HandlerUIContextualActionHandler. Gets or sets the code that is run when the action button is pressed.
ImageUIImage. Gets or sets an image for the context action button.
StyleUIContextualActionStyle. Gets the style with which the button was created.
TitleString. Gets or sets the button title.

Public Methods

FromContextualActionStyle(UIContextualActionStyle, String, UIContextualActionHandler) : UIContextualAction
Creates a new contextual action with the specified styel and title.