Home > @magiclane/maps-sdk > GemView > handleTouchEvent
GemView.handleTouchEvent() method
Handle a touch event.
Signature:
handleTouchEvent(pointerIndex: number, touchType: number, x: number, y: number): number;Parameters
Parameter | Type | Description |
|---|---|---|
pointerIndex | number | The pointer index of the touch event. |
touchType | number | The type of touch event (0 = down, 1 = move, 2 = up, 3 = cancel). |
x | number | The x-coordinate of the touch event. |
y | number | The y-coordinate of the touch event. |
Returns:
number
GemError.success if successful, or other error codes.