CompassSettingsBase

Abstract settings class for CompassPlugin.

This abstract class exposes all the required public APIs to configure the CompassPlugin.

abstract class CompassSettingsBase : CompassSettingsInterface

Constructors

CompassSettingsBase
Link copied to clipboard
fun CompassSettingsBase()

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getSettings
Link copied to clipboard

Get current compass configuration.

open override fun getSettings(): CompassSettings
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String
updateSettings
Link copied to clipboard

Update compass configuration, the update will be applied to the plugin automatically.

open override fun updateSettings(block: CompassSettings.() -> Unit)

Properties

clickable
Link copied to clipboard

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

open override var clickable: Boolean
enabled
Link copied to clipboard

Whether the compass is visible on the map.

open override var enabled: Boolean
fadeWhenFacingNorth
Link copied to clipboard

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

open override var fadeWhenFacingNorth: Boolean
image
Link copied to clipboard

The compass image, the visual representation of the compass.

open override var image: Drawable?
marginBottom
Link copied to clipboard

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

open override var marginBottom: Float
marginLeft
Link copied to clipboard

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

open override var marginLeft: Float
marginRight
Link copied to clipboard

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

open override var marginRight: Float
marginTop
Link copied to clipboard

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

open override var marginTop: Float
opacity
Link copied to clipboard

The alpha channel value of the compass image

open override var opacity: Float
position
Link copied to clipboard

Defines where the compass is positioned on the map

open override var position: Int
rotation
Link copied to clipboard

The clockwise rotation value in degrees of the compass.

open override var rotation: Float
visibility
Link copied to clipboard

Whether the compass is displayed.

open override var visibility: Boolean

Inheritors

CompassViewPlugin
Link copied to clipboard