UIKit · IOS API REFERENCE
UIAction
class · iOS 13.0+ · SDK 27.1
@MainActor class UIAction
Members (17)
static · iOS 15.0+captureTextFromCamera
TypeScriptstatic captureTextFromCamera(responder: (UIResponder) & (SDKHandle), identifier?: (UIAction_Identifier) | null): Promise<UIAction>
Swift declarationclass func captureTextFromCamera(responder: any UIResponder & UIKeyInput, identifier: UIAction.Identifier?) -> Self
get · iOS 13.0+attributes
TypeScriptget attributes(): Promise<UIMenuElement_Attributes>
Swift declarationvar attributes: UIMenuElement.Attributes { get set }
set · iOS 13.0+attributes
TypeScriptsetAttributes(value: UIMenuElement_Attributes): Promise<void>
Swift declarationvar attributes: UIMenuElement.Attributes { get set }
get · iOS 13.0+discoverabilityTitle
TypeScriptget discoverabilityTitle(): Promise<(string) | null>
Swift declarationvar discoverabilityTitle: String? { get set }
set · iOS 13.0+discoverabilityTitle
TypeScriptsetDiscoverabilityTitle(value?: (string) | null): Promise<void>
Swift declarationvar discoverabilityTitle: String? { get set }
get · iOS 13.0+identifier
TypeScriptget identifier(): Promise<UIAction_Identifier>
Swift declarationvar identifier: UIAction.Identifier { get }
get · iOS 13.0+image
TypeScriptget image(): Promise<(UIImage) | null>
Swift declaration@NSCopying var image: UIImage? { get set }
set · iOS 13.0+image
TypeScriptsetImage(value?: (UIImage) | null): Promise<void>
Swift declaration@NSCopying var image: UIImage? { get set }
get · iOS 14.0+sender
TypeScriptget sender(): Promise<(unknown) | null>
Swift declarationvar sender: Any? { get }
get · iOS 13.0+state
TypeScriptget state(): Promise<UIMenuElement_State>
Swift declarationvar state: UIMenuElement.State { get set }
set · iOS 13.0+state
TypeScriptsetState(value: UIMenuElement_State): Promise<void>
Swift declarationvar state: UIMenuElement.State { get set }
get · iOS 13.0+title
TypeScriptget title(): Promise<string>
Swift declarationvar title: String { get set }
set · iOS 13.0+title
TypeScriptsetTitle(value: string): Promise<void>
Swift declarationvar title: String { get set }
init · iOS 13.0+init
TypeScriptstatic initTitleImageIdentifierDiscoverabilityTitleAttributesStateHandler(title: string, image: (UIImage) | null, identifier: (UIAction_Identifier) | null, discoverabilityTitle: (string) | null, attributes: UIMenuElement_Attributes, state: UIMenuElement_State, handler: ((arg0: UIAction) => void)): Promise<UIAction>
Swift declaration@MainActor @preconcurrency convenience init(title: String = "", image: UIImage? = nil, identifier: UIAction.Identifier? = nil, discoverabilityTitle: String? = nil, attributes: UIMenuElement.Attributes = [], state: UIMenuElement.State = .off, handler: @escaping UIActionHandler)
init · iOS 15.0+init
TypeScriptstatic initTitleSubtitleImageIdentifierDiscoverabilityTitleAttributesStateHandler(title: string, subtitle: (string) | null, image: (UIImage) | null, identifier: (UIAction_Identifier) | null, discoverabilityTitle: (string) | null, attributes: UIMenuElement_Attributes, state: UIMenuElement_State, handler: ((arg0: UIAction) => void)): Promise<UIAction>
Swift declaration@MainActor @preconcurrency convenience init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIAction.Identifier? = nil, discoverabilityTitle: String? = nil, attributes: UIMenuElement.Attributes = [], state: UIMenuElement.State = .off, handler: @escaping UIActionHandler)
init · iOS 27.0+init
TypeScriptstatic initTitleSubtitleImageSelectedImagePreferredImageVisibilityIdentifierDiscoverabilityTitleAttributesStateHandler(title: string, subtitle: (string) | null, image: (UIImage) | null, selectedImage: (UIImage) | null, preferredImageVisibility: UIMenuElement_ImageVisibility, identifier: (UIAction_Identifier) | null, discoverabilityTitle: (string) | null, attributes: UIMenuElement_Attributes, state: UIMenuElement_State, handler: ((arg0: UIAction) => void)): Promise<UIAction>
Swift declaration@MainActor @preconcurrency convenience init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, selectedImage: UIImage? = nil, preferredImageVisibility: UIMenuElement.ImageVisibility = .automatic, identifier: UIAction.Identifier? = nil, discoverabilityTitle: String? = nil, attributes: UIMenuElement.Attributes = [], state: UIMenuElement.State = .off, handler: @escaping UIActionHandler)
init · iOS 17.0+init
TypeScriptstatic initTitleSubtitleImageSelectedImageIdentifierDiscoverabilityTitleAttributesStateHandler(title: string, subtitle: (string) | null, image: (UIImage) | null, selectedImage: (UIImage) | null, identifier: (UIAction_Identifier) | null, discoverabilityTitle: (string) | null, attributes: UIMenuElement_Attributes, state: UIMenuElement_State, handler: ((arg0: UIAction) => void)): Promise<UIAction>
Swift declaration@MainActor @preconcurrency convenience init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, selectedImage: UIImage? = nil, identifier: UIAction.Identifier? = nil, discoverabilityTitle: String? = nil, attributes: UIMenuElement.Attributes = [], state: UIMenuElement.State = .off, handler: @escaping UIActionHandler)
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UIAction.init()
inherited init: cannot prove legal (class declares 4 custom initializers)
All UIKit types →