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) => voidA function that will be executed when a gesture is received. |
context | | anydefault 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