Package com.mapbox.mapboxsdk.maps.renderer.textureview
Contains the Mapbox Maps Android TextureView API classes.
Types
Name | Summary |
---|---|
TextureViewMapRenderer | open class TextureViewMapRenderer : MapRenderer The TextureViewMapRenderer encapsulates the GL thread and TextureView specifics to render the map. |
TextureViewRenderThread | open class TextureViewRenderThread : Thread, TextureView.SurfaceTextureListener The render thread is responsible for managing the communication between the ui thread and the render thread it creates. |
TextureViewMapRenderer
open class TextureViewMapRenderer : MapRenderer
The TextureViewMapRenderer encapsulates the GL thread and TextureView specifics to render the map.
See also
Name | Summary |
---|---|
com.mapbox.mapboxsdk.maps.renderer.MapRenderer | |
Constructors
Name | Summary |
---|---|
TextureViewMapRenderer | open fun TextureViewMapRenderer(context: Context, textureView: TextureView, localIdeographFontFamily: String, translucentSurface: Boolean)Create a MapRenderer for the given TextureView |
Functions
Name | Summary |
---|---|
isTranslucentSurface | open fun isTranslucentSurface(): Boolean |
onDestroy | open fun onDestroy() |
onPause | open fun onPause() |
onResume | open fun onResume() |
onStart | open fun onStart() |
onStop | open fun onStop() |
queueEvent | open fun queueEvent(runnable: Runnable) @CallSuper() open fun queueEvent(runnable: MapRendererRunnable) May be called from any thread. |
requestRender | open fun requestRender() |
setMaximumFps | open fun setMaximumFps(maximumFps: Int) The max frame rate at which this render is rendered,but it can’t excess the ability of device hardware. |
setOnFpsChangedListener | open fun setOnFpsChangedListener(listener: MapboxMap.OnFpsChangedListener) |
isTranslucentSurface
open fun isTranslucentSurface(): Boolean
onDestroy
open fun onDestroy()
onStart
open fun onStart()
onStop
open fun onStop()
queueEvent
open fun queueEvent(runnable: Runnable)
requestRender
open fun requestRender()
TextureViewRenderThread
open class TextureViewRenderThread : Thread, TextureView.SurfaceTextureListener
The render thread is responsible for managing the communication between the ui thread and the render thread it creates. Also, the EGL and GL contexts are managed from here.
Constructors
Name | Summary |
---|---|
TextureViewRenderThread | @UiThread() open fun TextureViewRenderThread(textureView: TextureView, mapRenderer: TextureViewMapRenderer)Create a render thread for the given TextureView / Maprenderer combination. |
Functions
Name | Summary |
---|---|
activeCount | open fun activeCount(): Int |
checkAccess | fun checkAccess() |
clone | open fun clone(): Any |
countStackFrames | open fun countStackFrames(): Int |
currentThread | open fun currentThread(): Thread |
destroy | open fun destroy() |
dumpStack | open fun dumpStack() |
enumerate | open fun enumerate(tarray: Array |
getAllStackTraces | open fun getAllStackTraces(): Map<Thread, Array |
getContextClassLoader | open fun getContextClassLoader(): ClassLoader |
getDefaultUncaughtExceptionHandler | open fun getDefaultUncaughtExceptionHandler(): Thread.UncaughtExceptionHandler |
getId | open fun getId(): Long |
getName | fun getName(): String |
getPriority | fun getPriority(): Int |
getStackTrace | open fun getStackTrace(): Array |
getState | open fun getState(): Thread.State |
getThreadGroup | fun getThreadGroup(): ThreadGroup |
getUncaughtExceptionHandler | open fun getUncaughtExceptionHandler(): Thread.UncaughtExceptionHandler |
holdsLock | open fun holdsLock(obj: Any): Boolean |
interrupt | open fun interrupt() |
interrupted | open fun interrupted(): Boolean |
isAlive | fun isAlive(): Boolean |
isDaemon | fun isDaemon(): Boolean |
isInterrupted | open fun isInterrupted(): Boolean |
join | fun join(millis: Long) |
onDestroy | @UiThread() open fun onDestroy() |
onPause | @UiThread() open fun onPause() |
onResume | @UiThread() open fun onResume() |
onSurfaceTextureAvailable | abstract fun onSurfaceTextureAvailable(p: SurfaceTexture, p1: Int, p2: Int) @UiThread() open fun onSurfaceTextureAvailable(surface: SurfaceTexture, width: Int, height: Int) |
onSurfaceTextureDestroyed | abstract fun onSurfaceTextureDestroyed(p: SurfaceTexture): Boolean @UiThread() open fun onSurfaceTextureDestroyed(surface: SurfaceTexture): Boolean |
onSurfaceTextureSizeChanged | abstract fun onSurfaceTextureSizeChanged(p: SurfaceTexture, p1: Int, p2: Int) @UiThread() open fun onSurfaceTextureSizeChanged(surface: SurfaceTexture, width: Int, height: Int) |
onSurfaceTextureUpdated | abstract fun onSurfaceTextureUpdated(p: SurfaceTexture) @UiThread() open fun onSurfaceTextureUpdated(surface: SurfaceTexture) |
queueEvent | open fun queueEvent(runnable: Runnable) May be called from any thread |
requestRender | open fun requestRender() May be called from any thread |
resume | fun resume() |
run | open fun run() open fun run() |
setContextClassLoader | open fun setContextClassLoader(cl: ClassLoader) |
setDaemon | fun setDaemon(on: Boolean) |
setDefaultUncaughtExceptionHandler | open fun setDefaultUncaughtExceptionHandler(eh: Thread.UncaughtExceptionHandler) |
setName | fun setName(name: String) |
setPriority | fun setPriority(newPriority: Int) |
setUncaughtExceptionHandler | open fun setUncaughtExceptionHandler(eh: Thread.UncaughtExceptionHandler) |
sleep | open fun sleep(millis: Long) |
start | open fun start() |
stop | fun stop() |
suspend | fun suspend() |
toString | open fun toString(): String |
yield | open fun yield() |
onDestroy
@UiThread()
open fun onDestroy()
onPause
@UiThread()
open fun onPause()
onResume
@UiThread()
open fun onResume()
onSurfaceTextureAvailable
@UiThread()
open fun onSurfaceTextureAvailable(surface: SurfaceTexture, width: Int, height: Int)
onSurfaceTextureDestroyed
@UiThread()
open fun onSurfaceTextureDestroyed(surface: SurfaceTexture): Boolean
onSurfaceTextureSizeChanged
@UiThread()
open fun onSurfaceTextureSizeChanged(surface: SurfaceTexture, width: Int, height: Int)
onSurfaceTextureUpdated
@UiThread()
open fun onSurfaceTextureUpdated(surface: SurfaceTexture)
queueEvent
open fun queueEvent(runnable: Runnable)
May be called from any thread
requestRender
open fun requestRender()
May be called from any thread
run
open fun run()
Android SDK
API Reference
- Root
- attribution
- camera
- constants
- exceptions
- geometry
- http
- location
- location.engine
- location.modes
- location.permissions
- log
- maps
- maps.renderer
- maps.renderer.egl
- maps.renderer.glsurfaceview
- maps.renderer.textureview
- maps.widgets
- module.http
- module.loader
- net
- offline
- snapshotter
- storage
- style.expressions
- style.layers
- style.light
- style.sources
- style.types
- text
- utils