Options

class Options(context: Context)

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.

Constructors

Link copied to clipboard
fun Options(context: Context)

Functions

Link copied to clipboard

Build the attribution parser

Link copied to clipboard
fun withAttributionData(vararg attributionData: String): AttributionParser.Options

Adds attribution data to the attribution parser builder

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

Flag indicating to add the copyright sign

Link copied to clipboard

Adds extra attributions to the attribution dialog

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

Flag indicating to add improve this map to the attribution dialog

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

Flag indicating to add Mapbox attribution

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

Flag indicating to show Geofencing user consent option. Note that the entry will be shown only if the Geofencing is currently active or the user has previously opted out.

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

Flag indicating to add privacy policy

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

Flag indicating to add telemetry attribution