ViewPlugin

fun interface ViewPlugin : MapPlugin

Defines interface of a ViewPlugin.

Types

Link copied to clipboard
data class Initializer(val context: WeakReference<Context>, val attributes: TypedArray, val pixelRatio: Float)

Initializer class wraps a bind configuration that can be used during plugin initialisation.

Functions

Link copied to clipboard
abstract fun bind(mapView: FrameLayout, attrs: AttributeSet?, pixelRatio: Float): View

Bind a view instance

Link copied to clipboard
open fun cleanup()

Called when the map is destroyed. Should be used to cleanup plugin resources for that map.

Link copied to clipboard
open fun initialize()

Called when the plugin is first added to the map.

Link copied to clipboard
open fun onDelegateProvider(delegateProvider: MapDelegateProvider)

Provides all map delegate instances.

Link copied to clipboard
open fun onPluginView(view: View)

Provides a view instances returned in inflate after it's been added to the MapView.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard