MapControllable

MapControllable interface is the gateway for public API to talk to the internal map controller.

interface MapControllable

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getMapboxMap
Link copied to clipboard

Returns a MapboxMap object that can be used to interact with the map.

abstract fun getMapboxMap(): MapboxMap
hashCode
Link copied to clipboard
open override fun hashCode(): Int
onDestroy
Link copied to clipboard

Called to dispose the renderer

abstract fun onDestroy()
onGenericMotionEvent
Link copied to clipboard

Called when a motion event has occurred.

abstract fun onGenericMotionEvent(event: MotionEvent): Boolean
onSizeChanged
Link copied to clipboard

Called when the size has changed.

abstract fun onSizeChanged(w: Int, h: Int)
onStart
Link copied to clipboard

Called to start rendering

abstract fun onStart()
onStop
Link copied to clipboard

Called to stop rendering

abstract fun onStop()
onTouchEvent
Link copied to clipboard

Called when a touch event has occurred.

abstract fun onTouchEvent(event: MotionEvent): Boolean
queueEvent
Link copied to clipboard

Called to queue an event on the render thread.

abstract fun queueEvent(runnable: Runnable)
setMaximumFps
Link copied to clipboard

Called to limit the maximum fps

abstract fun setMaximumFps(fps: Int)
snapshot
Link copied to clipboard

Called to capture a snapshot synchronously.

abstract fun snapshot(): Bitmap?

Called to capture a snapshot asynchronously.

abstract fun snapshot(listener: MapView.OnSnapshotReady)
toString
Link copied to clipboard
open override fun toString(): String

Inheritors

MapSurface
Link copied to clipboard
MapView
Link copied to clipboard