UIKit · IOS API REFERENCE
UIContextualAction
class · iOS 11.0+ · SDK 27.1
@MainActor class UIContextualAction
Members (9)
init · iOS 11.0+init
TypeScriptstatic init(style: UIContextualAction_Style, title: (string) | null, handler: ((arg0: UIContextualAction, arg1: UIView, arg2: ((arg0: boolean) => Promise<void>)) => void)): Promise<UIContextualAction>
Swift declarationconvenience init(style: UIContextualAction.Style, title: String?, handler: @escaping UIContextualAction.Handler)
get · iOS 11.0+backgroundColor
TypeScriptget backgroundColor(): Promise<(UIColor) | null>
Swift declaration@NSCopying var backgroundColor: UIColor! { get set }
set · iOS 11.0+backgroundColor
TypeScriptsetBackgroundColor(value?: (UIColor) | null): Promise<void>
Swift declaration@NSCopying var backgroundColor: UIColor! { get set }
get · iOS 11.0+handler
TypeScriptget handler(): Promise<((arg0: UIContextualAction, arg1: UIView, arg2: ((arg0: boolean) => void)) => Promise<void>)>
Swift declarationvar handler: UIContextualAction.Handler { get }
get · iOS 11.0+image
TypeScriptget image(): Promise<(UIImage) | null>
Swift declaration@NSCopying var image: UIImage? { get set }
set · iOS 11.0+image
TypeScriptsetImage(value?: (UIImage) | null): Promise<void>
Swift declaration@NSCopying var image: UIImage? { get set }
get · iOS 11.0+style
TypeScriptget style(): Promise<UIContextualAction_Style>
Swift declarationvar style: UIContextualAction.Style { get }
get · iOS 11.0+title
TypeScriptget title(): Promise<(string) | null>
Swift declarationvar title: String? { get set }
set · iOS 11.0+title
TypeScriptsetTitle(value?: (string) | null): Promise<void>
Swift declarationvar 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 →