iOS Guides | Samples

UIKit.UIContextualAction Class

A context action for a table row.

See Also: UIContextualAction

Syntax

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

Requirements

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

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.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
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.
[read-only]
StyleUIContextualActionStyle. Gets the style with which the button was created.
TitleString. Gets or sets the button title.

Public Methods

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