UIKit · IOS API REFERENCE
UIAlertAction
class · iOS 8.0+ · SDK 27.1
@MainActor class UIAlertAction
Members (5)
init · iOS 8.0+init
TypeScriptstatic init(title: (string) | null, style: UIAlertAction_Style, handler?: (((arg0: UIAlertAction) => void)) | null): Promise<UIAlertAction>
Swift declarationconvenience init(title: String?, style: UIAlertAction.Style, handler: ((UIAlertAction) -> Void)? = nil)
get · iOS 8.0+isEnabled
TypeScriptget isEnabled(): Promise<boolean>
Swift declarationvar isEnabled: Bool { get set }
set · iOS 8.0+isEnabled
TypeScriptsetIsEnabled(value: boolean): Promise<void>
Swift declarationvar isEnabled: Bool { get set }
get · iOS 8.0+style
TypeScriptget style(): Promise<UIAlertAction_Style>
Swift declarationvar style: UIAlertAction.Style { get }
get · iOS 8.0+title
TypeScriptget title(): Promise<(string) | null>
Swift declarationvar 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 →