Classes
GesturesObserver
Provides options for the GesturesObserver.
Defined in: ui/gestures/index.d.ts:11
Provides options for the GesturesObserver.
Constructors
Constructor
new GesturesObserver(
target: View,
callback: (args: GestureEventData) => void,
context: any): GesturesObserver;Defined in: ui/gestures/index.d.ts:18
Creates an instance of GesturesObserver class.
Parameters
| Parameter | Type | Description |
|---|---|---|
target | View | 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
androidOnTouchEvent: (motionEvent: any) => void;Defined in: ui/gestures/index.d.ts:51
An internal Android specific method used to pass the motion event to the correct gesture observer.
Parameters
| Parameter | Type |
|---|---|
motionEvent | any |
Returns
void
callback
callback: (args: GestureEventData) => void;Defined in: ui/gestures/index.d.ts:41
A function that will be executed when a gesture is received.
Parameters
| Parameter | Type |
|---|---|
args | GestureEventData |
Returns
void
context
context: any;Defined in: ui/gestures/index.d.ts:46
A context which will be used as this in callback execution.
type
type: GestureTypes;Defined in: ui/gestures/index.d.ts:36
Singular gesture type (e.g. GestureTypes.tap) attached to the observer. Does not support plural gesture types (e.g. GestureTypes.tap & GestureTypes.doubleTap).
Methods
disconnect()
disconnect(): any;Defined in: ui/gestures/index.d.ts:29
Disconnects the gesture observer.
Returns
any
observe()
observe(type: GestureTypes): any;Defined in: ui/gestures/index.d.ts:24
Registers a gesture observer to a view and gesture.
Parameters
| Parameter | Type | Description |
|---|---|---|
type | GestureTypes | Type of the gesture. |
Returns
any
- Previous
- Frame
- Next
- GridLayout