One Logo Pool Ball
UIKit · IOS API REFERENCE

UIAlertAction

class · iOS 8.0+ · SDK 27.1

@MainActor class UIAlertAction

Members (5)

init · iOS 8.0+

init

TypeScript
static init(title: (string) | null, style: UIAlertAction_Style, handler?: (((arg0: UIAlertAction) => void)) | null): Promise<UIAlertAction>
Swift declaration
convenience init(title: String?, style: UIAlertAction.Style, handler: ((UIAlertAction) -> Void)? = nil)
get · iOS 8.0+

isEnabled

TypeScript
get isEnabled(): Promise<boolean>
Swift declaration
var isEnabled: Bool { get set }
set · iOS 8.0+

isEnabled

TypeScript
setIsEnabled(value: boolean): Promise<void>
Swift declaration
var isEnabled: Bool { get set }
get · iOS 8.0+

style

TypeScript
get style(): Promise<UIAlertAction_Style>
Swift declaration
var style: UIAlertAction.Style { get }
get · iOS 8.0+

title

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

Skipped declarations

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

UIAlertAction.init()

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

All UIKit types →