One Logo Pool Ball
UIKit · IOS API REFERENCE

UIResponder

class · iOS 2.0+ · SDK 27.1

@MainActor class UIResponder

Members (53)

get · iOS 3.0+

keyboardAnimationCurveUserInfoKey

TypeScript
static get keyboardAnimationCurveUserInfoKey(): Promise<string>
Swift declaration
nonisolated class let keyboardAnimationCurveUserInfoKey: String
get · iOS 3.0+

keyboardAnimationDurationUserInfoKey

TypeScript
static get keyboardAnimationDurationUserInfoKey(): Promise<string>
Swift declaration
nonisolated class let keyboardAnimationDurationUserInfoKey: String
get · iOS 5.0+

keyboardDidChangeFrameNotification

TypeScript
static get keyboardDidChangeFrameNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let keyboardDidChangeFrameNotification: NSNotification.Name
get

keyboardDidHideNotification

TypeScript
static get keyboardDidHideNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let keyboardDidHideNotification: NSNotification.Name
get

keyboardDidShowNotification

TypeScript
static get keyboardDidShowNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let keyboardDidShowNotification: NSNotification.Name
get · iOS 3.2+

keyboardFrameBeginUserInfoKey

TypeScript
static get keyboardFrameBeginUserInfoKey(): Promise<string>
Swift declaration
nonisolated class let keyboardFrameBeginUserInfoKey: String
get · iOS 3.2+

keyboardFrameEndUserInfoKey

TypeScript
static get keyboardFrameEndUserInfoKey(): Promise<string>
Swift declaration
nonisolated class let keyboardFrameEndUserInfoKey: String
get · iOS 9.0+

keyboardIsLocalUserInfoKey

TypeScript
static get keyboardIsLocalUserInfoKey(): Promise<string>
Swift declaration
nonisolated class let keyboardIsLocalUserInfoKey: String
get · iOS 5.0+

keyboardWillChangeFrameNotification

TypeScript
static get keyboardWillChangeFrameNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let keyboardWillChangeFrameNotification: NSNotification.Name
get

keyboardWillHideNotification

TypeScript
static get keyboardWillHideNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let keyboardWillHideNotification: NSNotification.Name
get

keyboardWillShowNotification

TypeScript
static get keyboardWillShowNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let keyboardWillShowNotification: NSNotification.Name
static · iOS 7.0+

clearTextInputContextIdentifier

TypeScript
static clearTextInputContextIdentifier(identifier: string): Promise<void>
Swift declaration
class func clearTextInputContextIdentifier(_ identifier: String)
method · iOS 2.0+

becomeFirstResponder

TypeScript
becomeFirstResponder(): Promise<boolean>
Swift declaration
func becomeFirstResponder() -> Bool
method · iOS 13.0+

buildMenu

TypeScript
buildMenu(builder: SDKHandle): Promise<void>
Swift declaration
func buildMenu(with builder: any UIMenuBuilder)
method · iOS 15.0+

captureTextFromCamera

TypeScript
captureTextFromCamera(sender?: (unknown) | null): Promise<void>
Swift declaration
func captureTextFromCamera(_ sender: Any?)
init

init

TypeScript
static init(): Promise<UIResponder>
Swift declaration
init()
method · iOS 3.0+

motionBegan

TypeScript
motionBegan(motion: UIEvent_EventSubtype, event?: (UIEvent) | null): Promise<void>
Swift declaration
func motionBegan(_ motion: UIEvent.EventSubtype, with event: UIEvent?)
method · iOS 3.0+

motionCancelled

TypeScript
motionCancelled(motion: UIEvent_EventSubtype, event?: (UIEvent) | null): Promise<void>
Swift declaration
func motionCancelled(_ motion: UIEvent.EventSubtype, with event: UIEvent?)
method · iOS 3.0+

motionEnded

TypeScript
motionEnded(motion: UIEvent_EventSubtype, event?: (UIEvent) | null): Promise<void>
Swift declaration
func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?)
method · iOS 9.0+

pressesBegan

TypeScript
pressesBegan(presses: Array<UIPress>, event?: (UIPressesEvent) | null): Promise<void>
Swift declaration
func pressesBegan(_ presses: Set<UIPress>, with event: UIPressesEvent?)
method · iOS 9.0+

pressesCancelled

TypeScript
pressesCancelled(presses: Array<UIPress>, event?: (UIPressesEvent) | null): Promise<void>
Swift declaration
func pressesCancelled(_ presses: Set<UIPress>, with event: UIPressesEvent?)
method · iOS 9.0+

pressesChanged

TypeScript
pressesChanged(presses: Array<UIPress>, event?: (UIPressesEvent) | null): Promise<void>
Swift declaration
func pressesChanged(_ presses: Set<UIPress>, with event: UIPressesEvent?)
method · iOS 9.0+

pressesEnded

TypeScript
pressesEnded(presses: Array<UIPress>, event?: (UIPressesEvent) | null): Promise<void>
Swift declaration
func pressesEnded(_ presses: Set<UIPress>, with event: UIPressesEvent?)
method · iOS 26.0+

provider

TypeScript
provider(deferredElement: UIDeferredMenuElement): Promise<(UIDeferredMenuElement_Provider) | null>
Swift declaration
func provider(for deferredElement: UIDeferredMenuElement) -> UIDeferredMenuElement.Provider?
method · iOS 3.2+

reloadInputViews

TypeScript
reloadInputViews(): Promise<void>
Swift declaration
func reloadInputViews()
method · iOS 4.0+

remoteControlReceived

TypeScript
remoteControlReceived(event?: (UIEvent) | null): Promise<void>
Swift declaration
func remoteControlReceived(with event: UIEvent?)
method · iOS 2.0+

resignFirstResponder

TypeScript
resignFirstResponder(): Promise<boolean>
Swift declaration
func resignFirstResponder() -> Bool
method · iOS 8.0+

restoreUserActivityState

TypeScript
restoreUserActivityState(activity: _Foundation_NSUserActivity): Promise<void>
Swift declaration
func restoreUserActivityState(_ activity: NSUserActivity)
method · iOS 2.0+

touchesBegan

TypeScript
touchesBegan(touches: Array<UITouch>, event?: (UIEvent) | null): Promise<void>
Swift declaration
func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
method · iOS 2.0+

touchesCancelled

TypeScript
touchesCancelled(touches: Array<UITouch>, event?: (UIEvent) | null): Promise<void>
Swift declaration
func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?)
method · iOS 2.0+

touchesEnded

TypeScript
touchesEnded(touches: Array<UITouch>, event?: (UIEvent) | null): Promise<void>
Swift declaration
func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)
method · iOS 9.1+

touchesEstimatedPropertiesUpdated

TypeScript
touchesEstimatedPropertiesUpdated(touches: Array<UITouch>): Promise<void>
Swift declaration
func touchesEstimatedPropertiesUpdated(_ touches: Set<UITouch>)
method · iOS 2.0+

touchesMoved

TypeScript
touchesMoved(touches: Array<UITouch>, event?: (UIEvent) | null): Promise<void>
Swift declaration
func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?)
method · iOS 8.0+

updateUserActivityState

TypeScript
updateUserActivityState(activity: _Foundation_NSUserActivity): Promise<void>
Swift declaration
func updateUserActivityState(_ activity: NSUserActivity)
method · iOS 13.0+

validate

TypeScript
validate(command: UICommand): Promise<void>
Swift declaration
func validate(_ command: UICommand)
get · iOS 13.0+

activityItemsConfiguration

TypeScript
get activityItemsConfiguration(): Promise<(SDKHandle) | null>
Swift declaration
var activityItemsConfiguration: (any UIActivityItemsConfigurationReading)? { get set }
set · iOS 13.0+

activityItemsConfiguration

TypeScript
setActivityItemsConfiguration(value?: (SDKHandle) | null): Promise<void>
Swift declaration
var activityItemsConfiguration: (any UIActivityItemsConfigurationReading)? { get set }
get · iOS 2.0+

canBecomeFirstResponder

TypeScript
get canBecomeFirstResponder(): Promise<boolean>
Swift declaration
var canBecomeFirstResponder: Bool { get }
get · iOS 2.0+

canResignFirstResponder

TypeScript
get canResignFirstResponder(): Promise<boolean>
Swift declaration
var canResignFirstResponder: Bool { get }
get · iOS 13.0+

editingInteractionConfiguration

TypeScript
get editingInteractionConfiguration(): Promise<UIEditingInteractionConfiguration>
Swift declaration
var editingInteractionConfiguration: UIEditingInteractionConfiguration { get }
get · iOS 3.2+

inputAccessoryView

TypeScript
get inputAccessoryView(): Promise<(UIView) | null>
Swift declaration
var inputAccessoryView: UIView? { get }
get · iOS 8.0+

inputAccessoryViewController

TypeScript
get inputAccessoryViewController(): Promise<(UIInputViewController) | null>
Swift declaration
var inputAccessoryViewController: UIInputViewController? { get }
get · iOS 9.0+

inputAssistantItem

TypeScript
get inputAssistantItem(): Promise<UITextInputAssistantItem>
Swift declaration
var inputAssistantItem: UITextInputAssistantItem { get }
get · iOS 3.2+

inputView

TypeScript
get inputView(): Promise<(UIView) | null>
Swift declaration
var inputView: UIView? { get }
get · iOS 8.0+

inputViewController

TypeScript
get inputViewController(): Promise<(UIInputViewController) | null>
Swift declaration
var inputViewController: UIInputViewController? { get }
get · iOS 2.0+

isFirstResponder

TypeScript
get isFirstResponder(): Promise<boolean>
Swift declaration
var isFirstResponder: Bool { get }
get · iOS 7.0+

keyCommands

TypeScript
get keyCommands(): Promise<(Array<UIKeyCommand>) | null>
Swift declaration
var keyCommands: [UIKeyCommand]? { get }
get · iOS 2.0+

next

TypeScript
get next(): Promise<(UIResponder) | null>
Swift declaration
var next: UIResponder? { get }
get · iOS 7.0+

textInputContextIdentifier

TypeScript
get textInputContextIdentifier(): Promise<(string) | null>
Swift declaration
var textInputContextIdentifier: String? { get }
get · iOS 7.0+

textInputMode

TypeScript
get textInputMode(): Promise<(UITextInputMode) | null>
Swift declaration
var textInputMode: UITextInputMode? { get }
get · iOS 3.0+

undoManager

TypeScript
get undoManager(): Promise<(_Foundation_UndoManager) | null>
Swift declaration
var undoManager: UndoManager? { get }
get · iOS 8.0+

userActivity

TypeScript
get userActivity(): Promise<(_Foundation_NSUserActivity) | null>
Swift declaration
var userActivity: NSUserActivity? { get set }
set · iOS 8.0+

userActivity

TypeScript
setUserActivity(value?: (_Foundation_NSUserActivity) | null): Promise<void>
Swift declaration
var userActivity: NSUserActivity? { get set }

Skipped declarations

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

UIResponder.canPerformAction(_:withSender:)

Objective-C selectors cannot cross the bridge.

UIResponder.target(forAction:withSender:)

Objective-C selectors cannot cross the bridge.

All UIKit types →