AttributionViewPlugin

Concrete implementation of AttributionViewPlugin.

open class AttributionViewPlugin(viewImplProvider: (Context) -> AttributionViewImpl) : AttributionSettingsBase, AttributionPlugin, View.OnClickListener

Constructors

AttributionViewPlugin
Link copied to clipboard
fun AttributionViewPlugin(viewImplProvider: (Context) -> AttributionViewImpl)

Functions

bind
Link copied to clipboard

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

open override fun bind(mapView: FrameLayout, attrs: AttributeSet?, pixelRatio: Float): View
cleanup
Link copied to clipboard
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

open override fun getMapAttributionDelegate(): MapAttributionDelegate
getSettings
Link copied to clipboard
open 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()
onClick
Link copied to clipboard

Called when the attribution view has been clicked.

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

Provides map delegate instance.

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

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

open override fun onPluginView(view: View)
onStart
Link copied to clipboard
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.

open override fun setCustomAttributionDialogManager(dialogManager: AttributionDialogManager)
toString
Link copied to clipboard
open override fun toString(): String
updateSettings
Link copied to clipboard
open override fun updateSettings(block: AttributionSettings.() -> Unit)

Properties

clickable
Link copied to clipboard
open override var clickable: Boolean
enabled
Link copied to clipboard
open override var enabled: Boolean
iconColor
Link copied to clipboard
open override var iconColor: Int
marginBottom
Link copied to clipboard
open override var marginBottom: Float
marginLeft
Link copied to clipboard
open override var marginLeft: Float
marginRight
Link copied to clipboard
open override var marginRight: Float
marginTop
Link copied to clipboard
open override var marginTop: Float
position
Link copied to clipboard
open override var position: Int