Package com.mapbox.maps.plugin.attribution

Types

Attribution
Link copied to clipboard

Attribution model class.

data class Attribution(title: String, url: String)
AttributionDialogManager
Link copied to clipboard

Interface for attribution dialog manager. This interface can be used to implement your own AttributionDialogManager to replace the default attribution dialog.

interface AttributionDialogManager
AttributionDialogManagerImpl
Link copied to clipboard

Responsible for managing attribution interactions on the map.

When the user clicks the attribution icon, AttributionDialogManagerImpl.showAttribution} will be invoked. An attribution dialog will be shown to the user with contents based on the attributions found in the map style. Additionally an telemetry option item is shown to configure telemetry settings.

AttributionParserConfig
Link copied to clipboard

Config class for Attribution

class AttributionParserConfig(withImproveMap: Boolean, withCopyrightSign: Boolean, withTelemetryAttribution: Boolean, withMapboxAttribution: Boolean)
AttributionPlugin
Link copied to clipboard

Presenter interface for the attribution.

AttributionView
Link copied to clipboard

Interface for attribution view.

The attribution view implementation class should implement both the AttributionView interface and a View class (e.g ImageView).

interface AttributionView
AttributionViewImpl
Link copied to clipboard

Concrete implementation of AttributionView from AttributionContract.

class AttributionViewImpl @JvmOverloads() constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : AppCompatImageView, AttributionView
AttributionViewPlugin
Link copied to clipboard

Concrete implementation of AttributionViewPlugin.

open class AttributionViewPlugin(viewImplProvider: (Context) -> AttributionViewImpl) : AttributionSettingsBase, AttributionPlugin, View.OnClickListener
OnAttributionClickListener
Link copied to clipboard

Listener to get OnClick event on the view.

fun fun interface OnAttributionClickListener

Properties

attribution
Link copied to clipboard

Extension val for MapView to get the Compass View plugin instance.