๐Ÿš€ 8.9 Released! โ†’ โšก๏ธ New Node-API Engine Preview, ๐Ÿ“ฒ ns widget ios, ๐Ÿ’… Tailwind v4 and more...
Read Announcement
GesturesObserver
Provides options for the GesturesObserver.

Summary โ€‹

Constructors โ€‹

constructor โ€‹

new GesturesObserver(target: View, callback: (args: GestureEventData) => void, context: any): GesturesObserver
Creates an instance of GesturesObserver class.
Parameter Default Description
target

The view for which the observer is created.

callback
(args: GestureEventData) => void

A function that will be executed when a gesture is received.

context
any

default this argument for the callbacks.

Properties โ€‹

androidOnTouchEvent โ€‹

androidOnTouchEvent: (motionEvent: any) => void

callback โ€‹

context โ€‹

context: any
A context which will be used as `this` in callback execution.

type โ€‹

Gesture type attached to the observer.

Methods โ€‹

disconnect โ€‹

disconnect(): any
Disconnects the gesture observer.
Returns any

observe โ€‹

observe(type: GestureTypes): any
Registers a gesture observer to a view and gesture.
Parameter Default Description
type

Type of the gesture.

Returns any
Previous
Frame