MapViewListenerLambdaImpl

class MapViewListenerLambdaImpl(val postOnMain: Boolean = true, var onReady: () -> Unit? = null, var onRender: () -> Unit? = null, var onViewportResized: (rect: Rect) -> Unit? = null, var onPointerDown: (ptrId: Long, pos: Xy) -> Unit? = null, var onPointerMove: (ptrId: Long, pos: Xy) -> Unit? = null, var onPointerUp: (ptrId: Long, pos: Xy) -> Unit? = null, var onAllTouchesUp: () -> Unit? = null, var onTouch: (pos: Xy) -> Unit? = null, var onLongDown: (pos: Xy) -> Unit? = null, var onDoubleTouch: (pos: Xy) -> Unit? = null, var onTwoTouches: (pos: Xy) -> Unit? = null, var onTwoDoubleTouches: (pos: Xy) -> Unit? = null, var onMove: (start: Xy, end: Xy) -> Unit? = null, var onTouchMove: (start: Xy, end: Xy) -> Unit? = null, var onSwipe: (distX: Int, distY: Int, speedMMPerSec: Double) -> Unit? = null, var onPinchSwipe: (centerPosInPix: Xy, zoomingSpeedInMMPerSec: Double, rotatingSpeedInMMPerSec: Double) -> Unit? = null, var onPinch: (start1: Xy, start2: Xy, end1: Xy, end2: Xy, center: Xy) -> Unit? = null, var onShove: (pointersAngleDeg: Double, initial: Xy, start: Xy, end: Xy) -> Unit? = null, var onTouchPinch: (start1: Xy, start2: Xy, end1: Xy, end2: Xy) -> Unit? = null, var onViewPrepareRender: () -> Unit? = null, var onViewRendered: (EViewDataTransitionStatus, EViewCameraTransitionStatus) -> Unit? = null, var onCursorSelectionUpdated: () -> Unit? = null, var onCursorSelectionUpdatedPath: (Path?) -> Unit? = null, var onCursorSelectionUpdatedMapSceneObject: (MapSceneObject?) -> Unit? = null, var onCursorSelectionUpdatedLandmarks: (LandmarkList) -> Unit? = null, var onCursorSelectionUpdatedOverlayItems: (OverlayItemList) -> Unit? = null, var onCursorSelectionUpdatedTrafficEvents: (TrafficEventList) -> Unit? = null, var onCursorSelectionUpdatedRoutes: (RouteList) -> Unit? = null, var onCursorSelectionUpdatedMarkerMatch: (MarkerMatchList) -> Unit? = null, var onHoveredMapLabelHighlightedLandmark: (Landmark) -> Unit? = null, var onHoveredMapLabelHighlightedOverlayItem: (OverlayItem) -> Unit? = null, var onHoveredMapLabelHighlightedTrafficEvent: (TrafficEvent) -> Unit? = null, var onMapStyleChanged: (Long, String) -> Unit? = null, var onMapAngleUpdated: (Double) -> Unit? = null, var onEnterFollowingPosition: () -> Unit? = null, var onExitFollowingPosition: () -> Unit? = null, var onExitFollowingPositionRequest: (req: ETrackingModeUpdateRequest) -> Pair<Boolean, Pair<Double, Double>>? = null, var onEnterTouchHandlerModifyFollowingPosition: () -> Unit? = null, var onExitTouchHandlerModifyFollowingPosition: () -> Unit? = null) : MapViewListener

Lambda object adapter for MapViewListener. Callbacks are executed on main thread.

Constructors

Link copied to clipboard
constructor(postOnMain: Boolean = true, onReady: () -> Unit? = null, onRender: () -> Unit? = null, onViewportResized: (rect: Rect) -> Unit? = null, onPointerDown: (ptrId: Long, pos: Xy) -> Unit? = null, onPointerMove: (ptrId: Long, pos: Xy) -> Unit? = null, onPointerUp: (ptrId: Long, pos: Xy) -> Unit? = null, onAllTouchesUp: () -> Unit? = null, onTouch: (pos: Xy) -> Unit? = null, onLongDown: (pos: Xy) -> Unit? = null, onDoubleTouch: (pos: Xy) -> Unit? = null, onTwoTouches: (pos: Xy) -> Unit? = null, onTwoDoubleTouches: (pos: Xy) -> Unit? = null, onMove: (start: Xy, end: Xy) -> Unit? = null, onTouchMove: (start: Xy, end: Xy) -> Unit? = null, onSwipe: (distX: Int, distY: Int, speedMMPerSec: Double) -> Unit? = null, onPinchSwipe: (centerPosInPix: Xy, zoomingSpeedInMMPerSec: Double, rotatingSpeedInMMPerSec: Double) -> Unit? = null, onPinch: (start1: Xy, start2: Xy, end1: Xy, end2: Xy, center: Xy) -> Unit? = null, onShove: (pointersAngleDeg: Double, initial: Xy, start: Xy, end: Xy) -> Unit? = null, onTouchPinch: (start1: Xy, start2: Xy, end1: Xy, end2: Xy) -> Unit? = null, onViewPrepareRender: () -> Unit? = null, onViewRendered: (EViewDataTransitionStatus, EViewCameraTransitionStatus) -> Unit? = null, onCursorSelectionUpdated: () -> Unit? = null, onCursorSelectionUpdatedPath: (Path?) -> Unit? = null, onCursorSelectionUpdatedMapSceneObject: (MapSceneObject?) -> Unit? = null, onCursorSelectionUpdatedLandmarks: (LandmarkList) -> Unit? = null, onCursorSelectionUpdatedOverlayItems: (OverlayItemList) -> Unit? = null, onCursorSelectionUpdatedTrafficEvents: (TrafficEventList) -> Unit? = null, onCursorSelectionUpdatedRoutes: (RouteList) -> Unit? = null, onCursorSelectionUpdatedMarkerMatch: (MarkerMatchList) -> Unit? = null, onHoveredMapLabelHighlightedLandmark: (Landmark) -> Unit? = null, onHoveredMapLabelHighlightedOverlayItem: (OverlayItem) -> Unit? = null, onHoveredMapLabelHighlightedTrafficEvent: (TrafficEvent) -> Unit? = null, onMapStyleChanged: (Long, String) -> Unit? = null, onMapAngleUpdated: (Double) -> Unit? = null, onEnterFollowingPosition: () -> Unit? = null, onExitFollowingPosition: () -> Unit? = null, onExitFollowingPositionRequest: (req: ETrackingModeUpdateRequest) -> Pair<Boolean, Pair<Double, Double>>? = null, onEnterTouchHandlerModifyFollowingPosition: () -> Unit? = null, onExitTouchHandlerModifyFollowingPosition: () -> Unit? = null)

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.

Link copied to clipboard
var onAllTouchesUp: () -> Unit?

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

This is called by the map service when the cursor is over a set of view components ( landmarks, markers, streets, vectors ). Current cursor selection can be obtained via MapView.cursorSelection... methods.

Link copied to clipboard

This is called by the map view when the cursor is over a set of landmarks. Lambda Signature: (LandmarkList) -> Unit

Link copied to clipboard

This is called by the map view when the cursor is over a scene object

Link copied to clipboard

This is called by the map view when the cursor is over a set of markers. Lambda Signature: (MarkerMatchList) -> Unit

Link copied to clipboard

This is called by the map view when the cursor is over a set of overlay items. Lambda Signature: (OverlayItemList) -> Unit

Link copied to clipboard

This is called by the map view when the cursor is over a path

Link copied to clipboard

This is called by the map view when the cursor is over a set of routes. Lambda Signature: (RouteList) -> Unit

Link copied to clipboard

This is called by the map view when the cursor is over a set of traffic events. Lambda Signature: (TrafficEventList) -> Unit

Link copied to clipboard
var onDoubleTouch: (pos: Xy) -> Unit?

Single pointer double touch event. Lambda Signature: (pos: Xy) -> Unit 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

This is called by the map view when it enters in following position mode

This is called by the map view when camera entered manually adjusted following position

Link copied to clipboard

This is called by the map view when it exits the following position mode

Link copied to clipboard

This is called by the map view when the tracking mode needs an update from the touch handler

This is called by the map view when camera exited manually adjusted following position

Link copied to clipboard

This is called by the map view when a map label hovering was enabled

Link copied to clipboard

This is called by the map view when a map label hovering was enabled

Link copied to clipboard

This is called by the map view when a map label hovering was enabled

Link copied to clipboard
var onLongDown: (pos: Xy) -> Unit?

Single pointer long touch event. Lambda Signature: (pos: Xy) -> Unit 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

Map angle changed notification

Link copied to clipboard

Map style changed notification. Lambda Signature: (Long, String) -> Unit

Link copied to clipboard
var onMove: (start: Xy, end: Xy) -> Unit?

Single pointer move event. Lambda Signature: (start: Xy, end: Xy) -> Unit A single pointer move event is defined as a pointer down, followed by a move, followed by a pointer up.

Link copied to clipboard
var onPinch: (start1: Xy, start2: Xy, end1: Xy, end2: Xy, center: Xy) -> Unit?

Two pointers pinch event. Lambda Signature: (start1: Xy, start2: Xy, end1: Xy, end2: Xy, center: Xy) -> Unit 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
var onPinchSwipe: (centerPosInPix: Xy, zoomingSpeedInMMPerSec: Double, rotatingSpeedInMMPerSec: Double) -> Unit?

Two pointer rotating and zooming, or just zooming, swipe event. Lambda Signature: (centerPosInPix: Xy, zoomingSpeedInMMPerSec: Double, rotatingSpeedInMMPerSec: Double) -> Unit

Link copied to clipboard
var onPointerDown: (ptrId: Long, pos: Xy) -> Unit?

Touch handler events listener. Lambda Signature: (ptrId: Long, pos: Xy) -> Unit 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
var onPointerMove: (ptrId: Long, pos: Xy) -> Unit?

Raw unprocessed pointer move. Lambda Signature: (ptrId: Long, pos: Xy) -> Unit

Link copied to clipboard
var onPointerUp: (ptrId: Long, pos: Xy) -> Unit?

Raw unprocessed pointer up. Lambda Signature: (ptrId: Long, pos: Xy) -> Unit

Link copied to clipboard
var onReady: () -> Unit?

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

Link copied to clipboard
var onRender: () -> Unit?

Notifies user to render the canvas.

Link copied to clipboard
var onShove: (pointersAngleDeg: Double, initial: Xy, start: Xy, end: Xy) -> Unit?

Two pointers shove event. Lambda Signature: (pointersAngleDeg: Double, start: Xy, end: Xy) -> Unit Two pointers move with distance between pointers and pointers angle remaining inside predefined thresholds.

Link copied to clipboard
var onSwipe: (distX: Int, distY: Int, speedMMPerSec: Double) -> Unit?

Single pointer swipe event. Lambda Signature: (distX: Int, distY: Int, speedMMPerSec: Double) -> Unit A single pointer swipe event is defined as a pointer down, followed by a swipe/fast move.

Link copied to clipboard
var onTouch: (pos: Xy) -> Unit?

Single pointer touch down event. Lambda Signature: (pos: Xy) -> Unit 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
var onTouchMove: (start: Xy, end: Xy) -> Unit?

Single pointer touch move event. Lambda Signature: (start: Xy, end: Xy) -> Unit 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
var onTouchPinch: (start1: Xy, start2: Xy, end1: Xy, end2: Xy) -> Unit?

Two pointers touch pinch event. Lambda Signature: (start1: Xy, start2: Xy, end1: Xy, end2: Xy) -> Unit 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
var onTwoDoubleTouches: (pos: Xy) -> Unit?

Two pointers double touch event. Lambda Signature: (pos: Xy) -> Unit 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
var onTwoTouches: (pos: Xy) -> Unit?

Two pointers touch event. Lambda Signature: (pos: Xy) -> Unit 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
var onViewportResized: (rect: Rect) -> Unit?

Notifies that canvas was resized because of the screen resize. Lambda Signature: (rect: Rect) -> Unit

Link copied to clipboard

Called by the View before rendering is started

Link copied to clipboard

Called by the View after rendering is finished. Lambda Signature: (EViewDataTransitionStatus, EViewCameraTransitionStatus) -> Unit

Link copied to clipboard
val postOnMain: Boolean = true

True for all events to be called on main thread else they will be called by the original callee thread.

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 override 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 override fun onCursorSelectionUpdated()

This is called by the map service when the cursor is over a set of view components ( landmarks, markers, streets, vectors ). Current cursor selection can be obtained via MapView.cursorSelection... methods.

Link copied to clipboard

This is called by the map view when the cursor is over a set of landmarks

Link copied to clipboard

This is called by the map view when the cursor is over a scene object

Link copied to clipboard

This is called by the map view when the cursor is over a set of markers

Link copied to clipboard

This is called by the map view when the cursor is over a set of overlay items

Link copied to clipboard
open override fun onCursorSelectionUpdatedPath(path: Path?)

This is called by the map view when the cursor is over a path

Link copied to clipboard
open override fun onCursorSelectionUpdatedRoutes(list: RouteList)

This is called by the map view when the cursor is over a set of routes

Link copied to clipboard

This is called by the map view when the cursor is over a set of traffic events

Link copied to clipboard
open override 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 override fun onEnterFollowingPosition()

This is called by the map view when it enters in following position mode

This is called by the map view when camera entered manually adjusted following position

Link copied to clipboard
open override fun onExitFollowingPosition()

This is called by the map view when it exits the following position mode

This is called by the map view when camera exited manually adjusted following position

Link copied to clipboard

This is called by the map view when a map label hovering was enabled

Link copied to clipboard

This is called by the map view when a map label hovering was enabled

Link copied to clipboard

This is called by the map view when a map label hovering was enabled

Link copied to clipboard
open override 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 override fun onMapAngleUpdated(angle: Double)

Map angle changed notification

Link copied to clipboard
open override fun onMapStyleChanged(id: Long, stylePath: String)

Map style changed notification

Link copied to clipboard
open override 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 override 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 override fun onPinchSwipe(centerPosInPix: Xy, zoomingSpeedInMMPerSec: Double, rotatingSpeedInMMPerSec: Double)

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

Link copied to clipboard
open override 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 override fun onPointerMove(ptrId: Long, pos: Xy)

Raw unprocessed pointer move

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

Raw unprocessed pointer up

Link copied to clipboard
open override fun onReady()

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

Link copied to clipboard
open override fun onRender()

Notifies user to render the canvas

Link copied to clipboard
open override 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 override 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 override 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 override 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 override 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 override 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 override 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 override fun onViewportResized(rect: Rect)

Notifies that canvas was resized because of the screen resize

Link copied to clipboard
open override fun onViewPrepareRender()

Called by the View before rendering is started

Link copied to clipboard
fun onViewRendered(tivStatus: Int, camStatus: Int)
open override fun onViewRendered(tivStatus: EViewDataTransitionStatus, camStatus: EViewCameraTransitionStatus)

Called by the View after rendering is finished.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if: