One Logo Pool Ball
UIKit · IOS API REFERENCE

UIContextualAction

class · iOS 11.0+ · SDK 27.1

@MainActor class UIContextualAction

Members (9)

init · iOS 11.0+

init

TypeScript
static init(style: UIContextualAction_Style, title: (string) | null, handler: ((arg0: UIContextualAction, arg1: UIView, arg2: ((arg0: boolean) => Promise<void>)) => void)): Promise<UIContextualAction>
Swift declaration
convenience init(style: UIContextualAction.Style, title: String?, handler: @escaping UIContextualAction.Handler)
get · iOS 11.0+

backgroundColor

TypeScript
get backgroundColor(): Promise<(UIColor) | null>
Swift declaration
@NSCopying var backgroundColor: UIColor! { get set }
set · iOS 11.0+

backgroundColor

TypeScript
setBackgroundColor(value?: (UIColor) | null): Promise<void>
Swift declaration
@NSCopying var backgroundColor: UIColor! { get set }
get · iOS 11.0+

handler

TypeScript
get handler(): Promise<((arg0: UIContextualAction, arg1: UIView, arg2: ((arg0: boolean) => void)) => Promise<void>)>
Swift declaration
var handler: UIContextualAction.Handler { get }
get · iOS 11.0+

image

TypeScript
get image(): Promise<(UIImage) | null>
Swift declaration
@NSCopying var image: UIImage? { get set }
set · iOS 11.0+

image

TypeScript
setImage(value?: (UIImage) | null): Promise<void>
Swift declaration
@NSCopying var image: UIImage? { get set }
get · iOS 11.0+

style

TypeScript
get style(): Promise<UIContextualAction_Style>
Swift declaration
var style: UIContextualAction.Style { get }
get · iOS 11.0+

title

TypeScript
get title(): Promise<(string) | null>
Swift declaration
var title: String? { get set }
set · iOS 11.0+

title

TypeScript
setTitle(value?: (string) | null): Promise<void>
Swift declaration
var title: String? { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIContextualAction.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →