AttributionViewPlugin

Concrete implementation of AttributionViewPlugin.

Constructors

AttributionViewPlugin
Link copied to clipboard
fun AttributionViewPlugin(viewImplProvider: (Context) -> AttributionViewImpl = { AttributionViewImpl(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()
getMapAttributionDelegate
Link copied to clipboard
open override fun getMapAttributionDelegate(): MapAttributionDelegate

Get the instance of MapAttributionDelegate

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

Called when the plugin is first added to the map.

onClick
Link copied to clipboard
open override fun onClick(v: View?)

Called when the attribution view has been clicked.

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

Provides map delegate instance.

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.

onStart
Link copied to clipboard
open fun onStart()
onStop
Link copied to clipboard
open override fun onStop()

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

setCustomAttributionDialogManager
Link copied to clipboard
open override fun setCustomAttributionDialogManager(dialogManager: AttributionDialogManager)

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

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

Properties

clickable
Link copied to clipboard
abstract var clickable: Boolean
enabled
Link copied to clipboard
abstract var enabled: Boolean
iconColor
Link copied to clipboard
abstract var iconColor: Int
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