actions
TypeScriptactions(target: (unknown) | null, controlEvent: UIControl_Event): Promise<(Array<string>) | null>Swift declarationfunc actions(forTarget target: Any?, forControlEvent controlEvent: UIControl.Event) -> [String]?class · iOS 2.0+ · SDK 27.1
@MainActor class UIControlactions(target: (unknown) | null, controlEvent: UIControl_Event): Promise<(Array<string>) | null>Swift declarationfunc actions(forTarget target: Any?, forControlEvent controlEvent: UIControl.Event) -> [String]?addAction(action: UIAction, controlEvents: UIControl_Event): Promise<void>Swift declarationfunc addAction(_ action: UIAction, for controlEvents: UIControl.Event)beginTracking(touch: UITouch, event?: (UIEvent) | null): Promise<boolean>Swift declarationfunc beginTracking(_ touch: UITouch, with event: UIEvent?) -> BoolcancelTracking(event?: (UIEvent) | null): Promise<void>Swift declarationfunc cancelTracking(with event: UIEvent?)contextMenuInteractionConfigurationForMenuAtLocation(interaction: UIContextMenuInteraction, location: { x: number; y: number }): Promise<(UIContextMenuConfiguration) | null>Swift declarationfunc contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration?contextMenuInteractionPreviewForDismissingMenuWithConfiguration(interaction: UIContextMenuInteraction, configuration: UIContextMenuConfiguration): Promise<(UITargetedPreview) | null>Swift declarationfunc contextMenuInteraction(_ interaction: UIContextMenuInteraction, previewForDismissingMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview?contextMenuInteractionPreviewForHighlightingMenuWithConfiguration(interaction: UIContextMenuInteraction, configuration: UIContextMenuConfiguration): Promise<(UITargetedPreview) | null>Swift declarationfunc contextMenuInteraction(_ interaction: UIContextMenuInteraction, previewForHighlightingMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview?contextMenuInteractionWillDisplayMenuForAnimator(interaction: UIContextMenuInteraction, configuration: UIContextMenuConfiguration, animator?: (SDKHandle) | null): Promise<void>Swift declarationfunc contextMenuInteraction(_ interaction: UIContextMenuInteraction, willDisplayMenuFor configuration: UIContextMenuConfiguration, animator: (any UIContextMenuInteractionAnimating)?)contextMenuInteractionWillEndForAnimator(interaction: UIContextMenuInteraction, configuration: UIContextMenuConfiguration, animator?: (SDKHandle) | null): Promise<void>Swift declarationfunc contextMenuInteraction(_ interaction: UIContextMenuInteraction, willEndFor configuration: UIContextMenuConfiguration, animator: (any UIContextMenuInteractionAnimating)?)continueTracking(touch: UITouch, event?: (UIEvent) | null): Promise<boolean>Swift declarationfunc continueTracking(_ touch: UITouch, with event: UIEvent?) -> BoolendTracking(touch?: (UITouch) | null, event?: (UIEvent) | null): Promise<void>Swift declarationfunc endTracking(_ touch: UITouch?, with event: UIEvent?)static initCoder(coder: _Foundation_NSCoder): Promise<(UIControl) | null>Swift declarationinit?(coder: NSCoder)static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<UIControl>Swift declarationinit(frame: CGRect)static initFramePrimaryAction(frame: { x: number; y: number; width: number; height: number }, primaryAction?: (UIAction) | null): Promise<UIControl>Swift declarationconvenience init(frame: CGRect, primaryAction: UIAction?)menuAttachmentPoint(configuration: UIContextMenuConfiguration): Promise<{ x: number; y: number }>Swift declarationfunc menuAttachmentPoint(for configuration: UIContextMenuConfiguration) -> CGPointperformPrimaryAction(): Promise<void>Swift declarationfunc performPrimaryAction()removeActionFor(action: UIAction, controlEvents: UIControl_Event): Promise<void>Swift declarationfunc removeAction(_ action: UIAction, for controlEvents: UIControl.Event)removeActionIdentifiedByFor(actionIdentifier: UIAction_Identifier, controlEvents: UIControl_Event): Promise<void>Swift declarationfunc removeAction(identifiedBy actionIdentifier: UIAction.Identifier, for controlEvents: UIControl.Event)sendAction(action: UIAction): Promise<void>Swift declarationfunc sendAction(_ action: UIAction)sendActions(controlEvents: UIControl_Event): Promise<void>Swift declarationfunc sendActions(for controlEvents: UIControl.Event)get allControlEvents(): Promise<UIControl_Event>Swift declarationvar allControlEvents: UIControl.Event { get }get allTargets(): Promise<Array<unknown>>Swift declarationvar allTargets: Set<AnyHashable> { get }get contentHorizontalAlignment(): Promise<UIControl_ContentHorizontalAlignment>Swift declarationvar contentHorizontalAlignment: UIControl.ContentHorizontalAlignment { get set }setContentHorizontalAlignment(value: UIControl_ContentHorizontalAlignment): Promise<void>Swift declarationvar contentHorizontalAlignment: UIControl.ContentHorizontalAlignment { get set }get contentVerticalAlignment(): Promise<UIControl_ContentVerticalAlignment>Swift declarationvar contentVerticalAlignment: UIControl.ContentVerticalAlignment { get set }setContentVerticalAlignment(value: UIControl_ContentVerticalAlignment): Promise<void>Swift declarationvar contentVerticalAlignment: UIControl.ContentVerticalAlignment { get set }get contextMenuInteraction(): Promise<(UIContextMenuInteraction) | null>Swift declarationvar contextMenuInteraction: UIContextMenuInteraction? { get }get isContextMenuInteractionEnabled(): Promise<boolean>Swift declarationvar isContextMenuInteractionEnabled: Bool { get set }setIsContextMenuInteractionEnabled(value: boolean): Promise<void>Swift declarationvar isContextMenuInteractionEnabled: Bool { get set }get effectiveContentHorizontalAlignment(): Promise<UIControl_ContentHorizontalAlignment>Swift declarationvar effectiveContentHorizontalAlignment: UIControl.ContentHorizontalAlignment { get }get isEnabled(): Promise<boolean>Swift declarationvar isEnabled: Bool { get set }setIsEnabled(value: boolean): Promise<void>Swift declarationvar isEnabled: Bool { get set }get isHighlighted(): Promise<boolean>Swift declarationvar isHighlighted: Bool { get set }setIsHighlighted(value: boolean): Promise<void>Swift declarationvar isHighlighted: Bool { get set }get isSelected(): Promise<boolean>Swift declarationvar isSelected: Bool { get set }setIsSelected(value: boolean): Promise<void>Swift declarationvar isSelected: Bool { get set }get showsMenuAsPrimaryAction(): Promise<boolean>Swift declarationvar showsMenuAsPrimaryAction: Bool { get set }setShowsMenuAsPrimaryAction(value: boolean): Promise<void>Swift declarationvar showsMenuAsPrimaryAction: Bool { get set }get state(): Promise<UIControl_State>Swift declarationvar state: UIControl.State { get }get isSymbolAnimationEnabled(): Promise<boolean>Swift declarationvar isSymbolAnimationEnabled: Bool { get set }setIsSymbolAnimationEnabled(value: boolean): Promise<void>Swift declarationvar isSymbolAnimationEnabled: Bool { get set }get toolTip(): Promise<(string) | null>Swift declarationvar toolTip: String? { get set }setToolTip(value?: (string) | null): Promise<void>Swift declarationvar toolTip: String? { get set }get toolTipInteraction(): Promise<(UIToolTipInteraction) | null>Swift declarationvar toolTipInteraction: UIToolTipInteraction? { get }get isTouchInside(): Promise<boolean>Swift declarationvar isTouchInside: Bool { get }get isTracking(): Promise<boolean>Swift declarationvar isTracking: Bool { get }5 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UIControl.enumerateEventHandlers(_:)
Objective-C selectors cannot cross the bridge.
UIControl.addTarget(_:action:for:)
Objective-C selectors cannot cross the bridge.
UIControl.removeTarget(_:action:for:)
Objective-C selectors cannot cross the bridge.
UIControl.sendAction(_:to:for:)
Objective-C selectors cannot cross the bridge.
UIControl.init()
inherited init: cannot prove legal (class declares 2 custom initializers)