Builder

class Builder

Composes and builds a ConsolidatedAttributionSettings object.

This is a concrete implementation of the builder design pattern.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard

Returns a ConsolidatedAttributionSettings reference to the object being constructed by the builder.

Link copied to clipboard

Setter for collapsedStyle: defines how much of the consolidated attribution control remains visible once it collapses. Default value: "icon-and-wordmark".

Link copied to clipboard

Setter for enabled: whether the consolidated attribution control is visible on the map. When enabled, it replaces the separate Mapbox logo and attribution icon. Default value: false.

Link copied to clipboard

Setter for introExpansion: defines how often the consolidated attribution control plays its intro expansion. Default value: "once".

Link copied to clipboard

Setter for marginBottom: defines the margin to the bottom that the consolidated attribution control honors. Default value: 8. This property is specified in pixels.

Link copied to clipboard

Setter for marginLeft: defines the margin to the left that the consolidated attribution control honors. Default value: 8. This property is specified in pixels.

Link copied to clipboard

Setter for marginRight: defines the margin to the right that the consolidated attribution control honors. Default value: 8. This property is specified in pixels.

Link copied to clipboard

Setter for marginTop: defines the margin to the top that the consolidated attribution control honors. Default value: 8. This property is specified in pixels.

Link copied to clipboard

Setter for material: defines the material filling the background of the consolidated attribution control. Light and dark rendering follows the night mode of the host configuration rather than this property. Default value: "solid".

Link copied to clipboard

Setter for position: defines where the consolidated attribution control is positioned on the map. Default value: "bottom-left".

Link copied to clipboard

Setter for tintColor: nudges the background of the consolidated attribution control toward the hue of this color, bringing the control closer to the host application palette. Defaults to fully transparent, which applies no tint. Only the hue is taken, so the background keeps the brightness and the translucency selected by the material. The tint applies to the light appearance only, and the Mapbox logo, the attribution text and the chevron are never tinted. Default value: "#00000000".

Properties

Link copied to clipboard

Defines how much of the consolidated attribution control remains visible once it collapses. Default value: "icon-and-wordmark".

Link copied to clipboard
var enabled: Boolean = false

Whether the consolidated attribution control is visible on the map. When enabled, it replaces the separate Mapbox logo and attribution icon. Default value: false.

Link copied to clipboard

Defines how often the consolidated attribution control plays its intro expansion. Default value: "once".

Link copied to clipboard
var marginBottom: Float = 8.0f

Defines the margin to the bottom that the consolidated attribution control honors. Default value: 8. This property is specified in pixels.

Link copied to clipboard
var marginLeft: Float = 8.0f

Defines the margin to the left that the consolidated attribution control honors. Default value: 8. This property is specified in pixels.

Link copied to clipboard
var marginRight: Float = 8.0f

Defines the margin to the right that the consolidated attribution control honors. Default value: 8. This property is specified in pixels.

Link copied to clipboard
var marginTop: Float = 8.0f

Defines the margin to the top that the consolidated attribution control honors. Default value: 8. This property is specified in pixels.

Link copied to clipboard

Defines the material filling the background of the consolidated attribution control. Light and dark rendering follows the night mode of the host configuration rather than this property. Default value: "solid".

Link copied to clipboard

Defines where the consolidated attribution control is positioned on the map. Default value: "bottom-left".

Link copied to clipboard

Nudges the background of the consolidated attribution control toward the hue of this color, bringing the control closer to the host application palette. Defaults to fully transparent, which applies no tint. Only the hue is taken, so the background keeps the brightness and the translucency selected by the material. The tint applies to the light appearance only, and the Mapbox logo, the attribution text and the chevron are never tinted. Default value: "#00000000".