ViewPlugin

fun fun interface ViewPlugin : MapPlugin

Defines interface of a ViewPlugin.

Types

Initializer
Link copied to clipboard
data class Initializer(context: WeakReference<Context>, attributes: TypedArray, pixelRatio: Float)
Initializer class wraps a bind configuration that can be used during plugin initialisation.

Functions

bind
Link copied to clipboard
abstract fun bind(mapView: FrameLayout, attrs: AttributeSet?, pixelRatio: Float): View
Bind a view instance
cleanup
Link copied to clipboard
open fun cleanup()
Called when the map is destroyed.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
initialize
Link copied to clipboard
open fun initialize()
Called when the plugin is first added to the map.
onDelegateProvider
Link copied to clipboard
open fun onDelegateProvider(delegateProvider: MapDelegateProvider)
Provides all map delegate instances.
onPluginView
Link copied to clipboard
open fun onPluginView(view: View)
Provides a view instances returned in inflate after it's been added to the MapView.
toString
Link copied to clipboard
open fun toString(): String

Inheritors

AttributionPlugin
Link copied to clipboard
CompassPlugin
Link copied to clipboard
LogoPlugin
Link copied to clipboard
ScaleBarPlugin
Link copied to clipboard