Note: You are on the beta version of our docs. This is a work in progress and may contain broken links and pages.
Classes
GesturesObserver
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. |
Returns GesturesObserver
Properties
androidOnTouchEvent
callback
callback: (args: GestureEventData) => void
context
A context which will be used as
`this`
in callback execution.type
type: GestureTypes
Gesture type attached to the observer.
Methods
disconnect
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
- Next
- GridLayout