CompassSettingsBase

abstract class CompassSettingsBase : CompassSettingsInterface

Abstract settings class for CompassPlugin.

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

Constructors

CompassSettingsBase
Link copied to clipboard
fun CompassSettingsBase()

Functions

getSettings
Link copied to clipboard
open override fun getSettings(): CompassSettings
Get current compass configuration.
updateSettings
Link copied to clipboard
open override fun updateSettings(block: CompassSettings.() -> Unit)
Update compass configuration, the update will be applied to the plugin automatically.

Properties

clickable
Link copied to clipboard
open override var clickable: Boolean
Whether the compass can be clicked and click events can be registered.
enabled
Link copied to clipboard
open override var enabled: Boolean
Whether the compass is visible on the map.
fadeWhenFacingNorth
Link copied to clipboard
open override var fadeWhenFacingNorth: Boolean
Whether the compass fades out to invisible when facing north direction.
image
Link copied to clipboard
open override var image: Drawable?
The compass image, the visual representation of the compass.
marginBottom
Link copied to clipboard
open override var marginBottom: Float
Defines the margin to the bottom that the compass icon honors.
marginLeft
Link copied to clipboard
open override var marginLeft: Float
Defines the margin to the left that the compass icon honors.
marginRight
Link copied to clipboard
open override var marginRight: Float
Defines the margin to the right that the compass icon honors.
marginTop
Link copied to clipboard
open override var marginTop: Float
Defines the margin to the top that the compass icon honors.
opacity
Link copied to clipboard
open override var opacity: Float
The alpha channel value of the compass image
position
Link copied to clipboard
open override var position: Int
Defines where the compass is positioned on the map
rotation
Link copied to clipboard
open override var rotation: Float
The clockwise rotation value in degrees of the compass.
visibility
Link copied to clipboard
open override var visibility: Boolean
Whether the compass is displayed.

Inheritors

CompassViewPlugin
Link copied to clipboard