CanvasListener

Canvas listener object

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
open fun onAllTouchesUp()

Raw unprocessed detection of all pointers up from screen. Action where the last pointer goes up and no pointers are left on the screen.

Link copied to clipboard
open fun onDoubleTouch(pos: Xy)

Single pointer double touch event. A double touch event is defined as two consecutive touches within a preset time duration in milliseconds, and distance between the two touches has to be less than a preset distance in millimeters.

Link copied to clipboard
open fun onLongDown(pos: Xy)

Single pointer long touch event. A long touch event is defined as a pointer down longer than a preset time in milliseconds and then pointer up, and pointer movement has to be less than a preset distance in millimeters.

Link copied to clipboard
open fun onMove(start: Xy, end: Xy)

Single pointer move event. A single pointer move event is defined as a pointer down, followed by a move, followed by a pointer up.

Link copied to clipboard
open fun onPinch(start1: Xy, start2: Xy, end1: Xy, end2: Xy, center: Xy)

Two pointers pinch event. A two pointers pinch event is defined as two pointers down, followed by moving one or both pointers toward or away from each other.

Link copied to clipboard
open fun onPinchSwipe(centerPosInPix: Xy, zoomingSpeedInMMPerSec: Double, rotatingSpeedInMMPerSec: Double)

Two pointer rotating and zooming, or just zooming, swipe event.

Link copied to clipboard
open fun onPointerDown(ptrId: Long, pos: Xy)

Touch handler events listener Raw unprocessed pointer down started - used to determine when one of the other processed actions start. Set pointer down flag indicating that action started! The flag is cleared by the actual action, such as OnPinch, when it starts.

Link copied to clipboard
open fun onPointerMove(ptrId: Long, pos: Xy)

Raw unprocessed pointer move

Link copied to clipboard
open fun onPointerUp(ptrId: Long, pos: Xy)

Raw unprocessed pointer up

Link copied to clipboard
open fun onReady()

Called by the canvas / map view when is initialized and ready to be used

Link copied to clipboard
open fun onRender()

Notifies user to render the canvas

Link copied to clipboard
open fun onShove(pointersAngleDeg: Double, initial: Xy, start: Xy, end: Xy)

Two pointers shove event. Two pointers move with distance between pointers and pointers angle remaining inside predefined thresholds.

Link copied to clipboard
open fun onSwipe(distX: Int, distY: Int, speedMMPerSec: Double)

Single pointer swipe event. A single pointer swipe event is defined as a pointer down, followed by a swipe/fast move.

Link copied to clipboard
open fun onTouch(pos: Xy)

Single pointer touch down event. A touch event is defined as a pointer down and up within a preset time in milliseconds, and pointer movement has to be less than a preset distance in millimeters.

Link copied to clipboard
open fun onTouchMove(start: Xy, end: Xy)

Single pointer touch move event. Touch move mode is enabled by performing a pointer touch immediately followed by a pointer down in same screen area, and then move.

Link copied to clipboard
open fun onTouchPinch(start1: Xy, start2: Xy, end1: Xy, end2: Xy)

Two pointers touch pinch event. Two fingers touch mode is enabled by performing a single pointer touch immediately followed by two pointers down, with one of the pointers close to the previous touch.

Link copied to clipboard
open fun onTwoDoubleTouches(pos: Xy)

Two pointers double touch event. A two pointers double touch event is defined as two consecutive two-pointer touches from which the pointer ups are within a preset time in milliseconds.

Link copied to clipboard
open fun onTwoTouches(pos: Xy)

Two pointers touch event. A two pointers touch event is defined as two simultaneous touches from which the pointer ups are within a preset time in milliseconds.

Link copied to clipboard
open fun onViewportResized(rect: Rect)

Notifies that canvas was resized because of the screen resize

Link copied to clipboard
fun release()

Releases the native referenced value of this object if: