CompassSettings

Shows the compass on the map.

data class CompassSettings(enabled: Boolean, position: Int, marginLeft: Float, marginTop: Float, marginRight: Float, marginBottom: Float, opacity: Float, rotation: Float, visibility: Boolean, fadeWhenFacingNorth: Boolean, clickable: Boolean, image: Drawable?)

Constructors

CompassSettings
Link copied to clipboard
fun CompassSettings(enabled: Boolean, position: Int, marginLeft: Float, marginTop: Float, marginRight: Float, marginBottom: Float, opacity: Float, rotation: Float, visibility: Boolean, fadeWhenFacingNorth: Boolean, clickable: Boolean, image: Drawable?)

Functions

component1
Link copied to clipboard
operator fun component1(): Boolean
component10
Link copied to clipboard
operator fun component10(): Boolean
component11
Link copied to clipboard
operator fun component11(): Boolean
component12
Link copied to clipboard
operator fun component12(): Drawable?
component2
Link copied to clipboard
operator fun component2(): Int
component3
Link copied to clipboard
operator fun component3(): Float
component4
Link copied to clipboard
operator fun component4(): Float
component5
Link copied to clipboard
operator fun component5(): Float
component6
Link copied to clipboard
operator fun component6(): Float
component7
Link copied to clipboard
operator fun component7(): Float
component8
Link copied to clipboard
operator fun component8(): Float
component9
Link copied to clipboard
operator fun component9(): Boolean
copy
Link copied to clipboard
fun copy(enabled: Boolean, position: Int, marginLeft: Float, marginTop: Float, marginRight: Float, marginBottom: Float, opacity: Float, rotation: Float, visibility: Boolean, fadeWhenFacingNorth: Boolean, clickable: Boolean, image: Drawable?): CompassSettings
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

Properties

clickable
Link copied to clipboard

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

var clickable: Boolean
enabled
Link copied to clipboard

Whether the compass is visible on the map.

var enabled: Boolean
fadeWhenFacingNorth
Link copied to clipboard

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

var fadeWhenFacingNorth: Boolean
image
Link copied to clipboard

The compass image, the visual representation of the compass.

var image: Drawable?
marginBottom
Link copied to clipboard

Defines the margin to the bottom that the compass icon honors.

var marginBottom: Float
marginLeft
Link copied to clipboard

Defines the margin to the left that the compass icon honors.

var marginLeft: Float
marginRight
Link copied to clipboard

Defines the margin to the right that the compass icon honors.

var marginRight: Float
marginTop
Link copied to clipboard

Defines the margin to the top that the compass icon honors.

var marginTop: Float
opacity
Link copied to clipboard

The alpha channel value of the compass image

var opacity: Float
position
Link copied to clipboard

Defines where the compass is positioned on the map

var position: Int
rotation
Link copied to clipboard

The clockwise rotation value in degrees of the compass.

var rotation: Float
visibility
Link copied to clipboard

Whether the compass is displayed.

var visibility: Boolean