Options

Builder to configure using an AttributionParser.

AttributionData, set with .withAttributionData, is the only required property to build the underlying AttributionParser. Other properties include trimming the copyright sign, adding telemetry attribution or hiding attribution as improve this map and Mapbox.

class Options(context: Context)

Constructors

Options
Link copied to clipboard
fun Options(context: Context)

Functions

build
Link copied to clipboard

Build the attribution parser

fun build(): AttributionParser
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String
withAttributionData
Link copied to clipboard

Adds attribution data to the attribution parser builder

fun withAttributionData(vararg attributionData: Array<out String>): AttributionParser.Options
withCopyrightSign
Link copied to clipboard

Flag indicating to add the copyright sign

fun withCopyrightSign(withCopyrightSign: Boolean): AttributionParser.Options
withImproveMap
Link copied to clipboard

Flag indicating to add improve this map to the attribution dialog

fun withImproveMap(withImproveMap: Boolean): AttributionParser.Options
withMapboxAttribution
Link copied to clipboard

Flag indicating to add Mapbox attribution

fun withMapboxAttribution(withMapboxAttribution: Boolean): AttributionParser.Options
withTelemetryAttribution
Link copied to clipboard

Flag indicating to add telemetry attribution

fun withTelemetryAttribution(withTelemetryAttribution: Boolean): AttributionParser.Options