canBePrevented
TypeScriptcanBePrevented(preventingGestureRecognizer: UIGestureRecognizer): Promise<boolean>Swift declarationfunc canBePrevented(by preventingGestureRecognizer: UIGestureRecognizer) -> Boolclass · iOS 3.2+ · SDK 27.1
@MainActor class UIGestureRecognizercanBePrevented(preventingGestureRecognizer: UIGestureRecognizer): Promise<boolean>Swift declarationfunc canBePrevented(by preventingGestureRecognizer: UIGestureRecognizer) -> BoolcanPrevent(preventedGestureRecognizer: UIGestureRecognizer): Promise<boolean>Swift declarationfunc canPrevent(_ preventedGestureRecognizer: UIGestureRecognizer) -> BoolignoreFor(button: UIPress, event: UIPressesEvent): Promise<void>Swift declaration@MainActor func ignore(_ button: UIPress, for event: UIPressesEvent)ignoreFor46411(touch: UITouch, event: UIEvent): Promise<void>Swift declaration@MainActor func ignore(_ touch: UITouch, for event: UIEvent)static init(): Promise<UIGestureRecognizer>Swift declarationconvenience init()static initCoder(coder: _Foundation_NSCoder): Promise<(UIGestureRecognizer) | null>Swift declarationconvenience init?(coder: NSCoder)locationIn(view?: (UIView) | null): Promise<{ x: number; y: number }>Swift declarationfunc location(in view: UIView?) -> CGPointlocationOfTouchIn(touchIndex: number, view?: (UIView) | null): Promise<{ x: number; y: number }>Swift declarationfunc location(ofTouch touchIndex: Int, in view: UIView?) -> CGPointpressesBegan(presses: Array<UIPress>, event: UIPressesEvent): Promise<void>Swift declarationfunc pressesBegan(_ presses: Set<UIPress>, with event: UIPressesEvent)pressesCancelled(presses: Array<UIPress>, event: UIPressesEvent): Promise<void>Swift declarationfunc pressesCancelled(_ presses: Set<UIPress>, with event: UIPressesEvent)pressesChanged(presses: Array<UIPress>, event: UIPressesEvent): Promise<void>Swift declarationfunc pressesChanged(_ presses: Set<UIPress>, with event: UIPressesEvent)pressesEnded(presses: Array<UIPress>, event: UIPressesEvent): Promise<void>Swift declarationfunc pressesEnded(_ presses: Set<UIPress>, with event: UIPressesEvent)require(otherGestureRecognizer: UIGestureRecognizer): Promise<void>Swift declarationfunc require(toFail otherGestureRecognizer: UIGestureRecognizer)reset(): Promise<void>Swift declarationfunc reset()shouldBeRequiredToFail(otherGestureRecognizer: UIGestureRecognizer): Promise<boolean>Swift declarationfunc shouldBeRequiredToFail(by otherGestureRecognizer: UIGestureRecognizer) -> BoolshouldReceive(event: UIEvent): Promise<boolean>Swift declarationfunc shouldReceive(_ event: UIEvent) -> BoolshouldRequireFailure(otherGestureRecognizer: UIGestureRecognizer): Promise<boolean>Swift declarationfunc shouldRequireFailure(of otherGestureRecognizer: UIGestureRecognizer) -> BooltouchesBegan(touches: Array<UITouch>, event: UIEvent): Promise<void>Swift declarationfunc touchesBegan(_ touches: Set<UITouch>, with event: UIEvent)touchesCancelled(touches: Array<UITouch>, event: UIEvent): Promise<void>Swift declarationfunc touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent)touchesEnded(touches: Array<UITouch>, event: UIEvent): Promise<void>Swift declarationfunc touchesEnded(_ touches: Set<UITouch>, with event: UIEvent)touchesEstimatedPropertiesUpdated(touches: Array<UITouch>): Promise<void>Swift declarationfunc touchesEstimatedPropertiesUpdated(_ touches: Set<UITouch>)touchesMoved(touches: Array<UITouch>, event: UIEvent): Promise<void>Swift declarationfunc touchesMoved(_ touches: Set<UITouch>, with event: UIEvent)get allowedPressTypes(): Promise<Array<_Foundation_NSNumber>>Swift declarationvar allowedPressTypes: [NSNumber] { get set }setAllowedPressTypes(value: Array<_Foundation_NSNumber>): Promise<void>Swift declarationvar allowedPressTypes: [NSNumber] { get set }get allowedTouchTypes(): Promise<Array<_Foundation_NSNumber>>Swift declarationvar allowedTouchTypes: [NSNumber] { get set }setAllowedTouchTypes(value: Array<_Foundation_NSNumber>): Promise<void>Swift declarationvar allowedTouchTypes: [NSNumber] { get set }get buttonMask(): Promise<UIEvent_ButtonMask>Swift declarationvar buttonMask: UIEvent.ButtonMask { get }get cancelsTouchesInView(): Promise<boolean>Swift declarationvar cancelsTouchesInView: Bool { get set }setCancelsTouchesInView(value: boolean): Promise<void>Swift declarationvar cancelsTouchesInView: Bool { get set }get delaysTouchesBegan(): Promise<boolean>Swift declarationvar delaysTouchesBegan: Bool { get set }setDelaysTouchesBegan(value: boolean): Promise<void>Swift declarationvar delaysTouchesBegan: Bool { get set }get delaysTouchesEnded(): Promise<boolean>Swift declarationvar delaysTouchesEnded: Bool { get set }setDelaysTouchesEnded(value: boolean): Promise<void>Swift declarationvar delaysTouchesEnded: Bool { get set }get delegate(): Promise<(SDKHandle) | null>Swift declarationweak var delegate: (any UIGestureRecognizerDelegate)? { get set }setDelegate(value?: (Implements<UIGestureRecognizerDelegate> | SDKHandle) | null): Promise<void>Swift declarationweak var delegate: (any UIGestureRecognizerDelegate)? { get set }get isEnabled(): Promise<boolean>Swift declarationvar isEnabled: Bool { get set }setIsEnabled(value: boolean): Promise<void>Swift declarationvar isEnabled: Bool { get set }get modifierFlags(): Promise<UIKeyModifierFlags>Swift declarationvar modifierFlags: UIKeyModifierFlags { get }get name(): Promise<(string) | null>Swift declarationvar name: String? { get set }setName(value?: (string) | null): Promise<void>Swift declarationvar name: String? { get set }get numberOfTouches(): Promise<number>Swift declarationvar numberOfTouches: Int { get }get requiresExclusiveTouchType(): Promise<boolean>Swift declarationvar requiresExclusiveTouchType: Bool { get set }setRequiresExclusiveTouchType(value: boolean): Promise<void>Swift declarationvar requiresExclusiveTouchType: Bool { get set }get state(): Promise<UIGestureRecognizer_State>Swift declarationvar state: UIGestureRecognizer.State { get set }setState(value: UIGestureRecognizer_State): Promise<void>Swift declarationvar state: UIGestureRecognizer.State { get set }get view(): Promise<(UIView) | null>Swift declarationvar view: UIView? { get }3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UIGestureRecognizer.init(target:action:)
Objective-C selectors cannot cross the bridge.
UIGestureRecognizer.addTarget(_:action:)
Objective-C selectors cannot cross the bridge.
UIGestureRecognizer.removeTarget(_:action:)
Objective-C selectors cannot cross the bridge.