Builder

class Builder

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

Link copied to clipboard

Setter for clickable: whether the compass can be clicked and click events can be registered.

Link copied to clipboard

Setter for enabled: whether the compass is visible on the map.

Link copied to clipboard

Setter for fadeWhenFacingNorth: whether the compass fades out to invisible when facing north direction.

Link copied to clipboard

Setter for image: the compass image, the visual representation of the compass.

Link copied to clipboard

Setter for marginBottom: defines the margin to the bottom that the compass icon honors. This property is specified in pixels.

Link copied to clipboard

Setter for marginLeft: defines the margin to the left that the compass icon honors. This property is specified in pixels.

Link copied to clipboard

Setter for marginRight: defines the margin to the right that the compass icon honors. This property is specified in pixels.

Link copied to clipboard

Setter for marginTop: defines the margin to the top that the compass icon honors. This property is specified in pixels.

Link copied to clipboard

Setter for opacity: the alpha channel value of the compass image.

Link copied to clipboard

Setter for position: defines where the compass is positioned on the map.

Link copied to clipboard

Setter for rotation: the clockwise rotation value in degrees of the compass.

Link copied to clipboard

Setter for visibility: whether the compass is displayed.

Properties

Link copied to clipboard
var clickable: Boolean = true

Whether the compass can be clicked and click events can be registered.

Link copied to clipboard
var enabled: Boolean = true

Whether the compass is visible on the map.

Link copied to clipboard

Whether the compass fades out to invisible when facing north direction.

Link copied to clipboard
var image: ImageHolder? = null

The compass image, the visual representation of the compass.

Link copied to clipboard
var marginBottom: Float = 4.0f

Defines the margin to the bottom that the compass icon honors. This property is specified in pixels.

Link copied to clipboard
var marginLeft: Float = 4.0f

Defines the margin to the left that the compass icon honors. This property is specified in pixels.

Link copied to clipboard
var marginRight: Float = 4.0f

Defines the margin to the right that the compass icon honors. This property is specified in pixels.

Link copied to clipboard
var marginTop: Float = 4.0f

Defines the margin to the top that the compass icon honors. This property is specified in pixels.

Link copied to clipboard
var opacity: Float = 1.0f

The alpha channel value of the compass image

Link copied to clipboard

Defines where the compass is positioned on the map

Link copied to clipboard
var rotation: Float = 0.0f

The clockwise rotation value in degrees of the compass.

Link copied to clipboard
var visibility: Boolean = true

Whether the compass is displayed.