Builder

class Builder

Composes and builds a AttributionSettings 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 AttributionSettings reference to the object being constructed by the builder.

Link copied to clipboard

Setter for clickable: whether the attribution can be clicked and click events can be registered. Default value: true.

Link copied to clipboard

Setter for enabled: whether the attribution icon is visible on the map. Default value: true.

Link copied to clipboard

Setter for iconColor: defines text color of the attribution icon. Default value: "#FF1E8CAB".

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Properties

Link copied to clipboard
var clickable: Boolean = true

Whether the attribution can be clicked and click events can be registered. Default value: true.

Link copied to clipboard
var enabled: Boolean = true

Whether the attribution icon is visible on the map. Default value: true.

Link copied to clipboard

Defines text color of the attribution icon. Default value: "#FF1E8CAB".

Link copied to clipboard
var marginBottom: Float = 4.0f

Defines the margin to the bottom that the attribution icon honors. Default value: 4. This property is specified in pixels.

Link copied to clipboard
var marginLeft: Float = 92.0f

Defines the margin to the left that the attribution icon honors. Default value: 92. This property is specified in pixels.

Link copied to clipboard
var marginRight: Float = 4.0f

Defines the margin to the right that the attribution icon honors. Default value: 4. This property is specified in pixels.

Link copied to clipboard
var marginTop: Float = 4.0f

Defines the margin to the top that the attribution icon honors. Default value: 4. This property is specified in pixels.

Link copied to clipboard

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