CompassButton

interface CompassButton

Defines the properties of a compass.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
abstract fun addOnCompassButtonClickListener(listener: OnUiComponentClickListener)

Registers OnUiComponentClickListener which is notified when the user clicks on the compass.

Link copied to clipboard
abstract fun removeOnCompassButtonClickListener(listener: OnUiComponentClickListener)

Properties

Link copied to clipboard
abstract var icon: Int

Defines the icon that is displayed when the map is rotated. The icon will not be changed immediately if the compass is not rotated.

Link copied to clipboard
abstract val isVisible: Boolean

Reports whether the view is currently visible on the screen.

Link copied to clipboard
abstract var margin: Margin

Defines the margin of the button.

Link copied to clipboard
abstract var northUpIcon: Int

Defines the icon that is displayed when the compass moves to a north up position and before it becomes transparent. The icon will not be changed immediately if the compass is rotated.

Link copied to clipboard
abstract var visibilityPolicy: VisibilityPolicy

Defines the visibility policy of the compass button.