LogoViewPlugin

open class LogoViewPlugin(viewImplProvider: (Context) -> LogoViewImpl) : LogoSettingsBase, LogoPlugin

Concrete implementation of LogoViewPlugin.

Constructors

LogoViewPlugin
Link copied to clipboard
fun LogoViewPlugin(viewImplProvider: (Context) -> LogoViewImpl = { LogoViewImpl(it) })

Functions

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

Bind the ViewPlugin with current map context. This will create a View that will be added to the MapView.

cleanup
Link copied to clipboard
open fun cleanup()
getSettings
Link copied to clipboard
abstract fun getSettings(): LogoSettings
initialize
Link copied to clipboard
open override fun initialize()

Called when the plugin is first added to the map.

onDelegateProvider
Link copied to clipboard
open fun onDelegateProvider(delegateProvider: MapDelegateProvider)
onPluginView
Link copied to clipboard
open override fun onPluginView(view: View)

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

updateSettings
Link copied to clipboard
abstract fun updateSettings(block: LogoSettings.() -> Unit)

Properties

enabled
Link copied to clipboard
open override var enabled: Boolean

Defines whether the plugins is enabled or disabled.

marginBottom
Link copied to clipboard
abstract var marginBottom: Float
marginLeft
Link copied to clipboard
abstract var marginLeft: Float
marginRight
Link copied to clipboard
abstract var marginRight: Float
marginTop
Link copied to clipboard
abstract var marginTop: Float
position
Link copied to clipboard
abstract var position: Int