init
TypeScriptstatic init(): Promise<UIPanGestureRecognizer>Swift declarationinit()class · iOS 3.2+ · SDK 27.1
@MainActor class UIPanGestureRecognizerstatic init(): Promise<UIPanGestureRecognizer>Swift declarationinit()setTranslation(translation: { x: number; y: number }, view?: (UIView) | null): Promise<void>Swift declarationfunc setTranslation(_ translation: CGPoint, in view: UIView?)translation(view?: (UIView) | null): Promise<{ x: number; y: number }>Swift declarationfunc translation(in view: UIView?) -> CGPointvelocity(view?: (UIView) | null): Promise<{ x: number; y: number }>Swift declarationfunc velocity(in view: UIView?) -> CGPointget allowedScrollTypesMask(): Promise<UIScrollTypeMask>Swift declarationvar allowedScrollTypesMask: UIScrollTypeMask { get set }setAllowedScrollTypesMask(value: UIScrollTypeMask): Promise<void>Swift declarationvar allowedScrollTypesMask: UIScrollTypeMask { get set }get maximumNumberOfTouches(): Promise<number>Swift declarationvar maximumNumberOfTouches: Int { get set }setMaximumNumberOfTouches(value: number): Promise<void>Swift declarationvar maximumNumberOfTouches: Int { get set }get minimumNumberOfTouches(): Promise<number>Swift declarationvar minimumNumberOfTouches: Int { get set }setMinimumNumberOfTouches(value: number): Promise<void>Swift declarationvar minimumNumberOfTouches: Int { get set }No declarations were skipped in this snapshot.