LogoPlugin

interface LogoPlugin : ViewPlugin, LogoSettingsInterface

Presenter interface for the logo.

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. Should be used to cleanup plugin resources for that map.

getSettings
Link copied to clipboard
abstract fun getSettings(): LogoSettings

Get current logo configuration.

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.

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

Update logo configuration, the update will be applied to the plugin automatically.

Properties

enabled
Link copied to clipboard
abstract var enabled: Boolean

Whether the logo is visible on the map.

marginBottom
Link copied to clipboard
abstract var marginBottom: Float

Defines the margin to the bottom that the attribution icon honors.

marginLeft
Link copied to clipboard
abstract var marginLeft: Float

Defines the margin to the left that the attribution icon honors.

marginRight
Link copied to clipboard
abstract var marginRight: Float

Defines the margin to the right that the attribution icon honors.

marginTop
Link copied to clipboard
abstract var marginTop: Float

Defines the margin to the top that the attribution icon honors.

position
Link copied to clipboard
abstract var position: Int

Defines where the logo is positioned on the map

Inheritors

LogoViewPlugin
Link copied to clipboard