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

Queue a runnable to be executed on the map renderer thread.

abstract fun queueEvent(event: Runnable, needRender: Boolean)
setMaximumFps
Link copied to clipboard

Called to limit the maximum fps

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

Set OnFpsChangedListener to get map rendering FPS.

abstract fun setOnFpsChangedListener(listener: OnFpsChangedListener)
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