AttributionPlugin

Presenter interface for the attribution.

Functions

bind
Link copied to clipboard

Bind a view instance

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

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

open override fun cleanup()
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getMapAttributionDelegate
Link copied to clipboard

Get the instance of MapAttributionDelegate

abstract fun getMapAttributionDelegate(): MapAttributionDelegate
getSettings
Link copied to clipboard

Get current attribution configuration.

abstract override fun getSettings(): AttributionSettings
hashCode
Link copied to clipboard
open override fun hashCode(): Int
initialize
Link copied to clipboard

Called when the plugin is first added to the map.

open override fun initialize()
onDelegateProvider
Link copied to clipboard

Provides all map delegate instances.

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

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

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

Called whenever activity's/fragment's lifecycle is entering a "started" state.

open override fun onStart()
onStop
Link copied to clipboard

Called whenever activity's/fragment's lifecycle is entering a "stopped" state.

open override fun onStop()
setCustomAttributionDialogManager
Link copied to clipboard

Set a custom AttributionDialogManager that is invoked when the attribution view is clicked.

abstract fun setCustomAttributionDialogManager(dialogManager: AttributionDialogManager)
toString
Link copied to clipboard
open override fun toString(): String
updateSettings
Link copied to clipboard

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

abstract override fun updateSettings(block: AttributionSettings.() -> Unit)

Properties

clickable
Link copied to clipboard

Whether the attribution can be clicked and click events can be registered.

abstract override var clickable: Boolean
enabled
Link copied to clipboard

Whether the attribution icon is visible on the map.

abstract override var enabled: Boolean
iconColor
Link copied to clipboard

Defines text color of the attribution icon.

abstract override var iconColor: Int
marginBottom
Link copied to clipboard

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

abstract override var marginBottom: Float
marginLeft
Link copied to clipboard

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

abstract override var marginLeft: Float
marginRight
Link copied to clipboard

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

abstract override var marginRight: Float
marginTop
Link copied to clipboard

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

abstract override var marginTop: Float
position
Link copied to clipboard

Defines where the attribution icon is positioned on the map

abstract override var position: Int

Inheritors

AttributionViewPlugin
Link copied to clipboard