CompassSettingsInterface

Interface that defines the public settings interface for CompassPlugin.

interface CompassSettingsInterface

Functions

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

Get current compass configuration.

abstract 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.

abstract fun updateSettings(block: CompassSettings.() -> Unit)

Properties

clickable
Link copied to clipboard

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

abstract var clickable: Boolean
enabled
Link copied to clipboard

Whether the compass is visible on the map.

abstract var enabled: Boolean
fadeWhenFacingNorth
Link copied to clipboard

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

abstract var fadeWhenFacingNorth: Boolean
image
Link copied to clipboard

The compass image, the visual representation of the compass.

abstract var image: Drawable?
marginBottom
Link copied to clipboard

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

abstract var marginBottom: Float
marginLeft
Link copied to clipboard

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

abstract var marginLeft: Float
marginRight
Link copied to clipboard

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

abstract var marginRight: Float
marginTop
Link copied to clipboard

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

abstract var marginTop: Float
opacity
Link copied to clipboard

The alpha channel value of the compass image

abstract var opacity: Float
position
Link copied to clipboard

Defines where the compass is positioned on the map

abstract var position: Int
rotation
Link copied to clipboard

The clockwise rotation value in degrees of the compass.

abstract var rotation: Float
visibility
Link copied to clipboard

Whether the compass is displayed.

abstract var visibility: Boolean

Inheritors

CompassPlugin
Link copied to clipboard
CompassSettingsBase
Link copied to clipboard