CurrentLocationButton

interface CurrentLocationButton

Defines the properties of a current location button.

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

Functions

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

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

abstract fun removeOnCurrentLocationButtonClickListener(listener: OnUiComponentClickListener)

Properties

Link copied to clipboard
abstract var icon: Int

Defines the icon that is displayed when the map is not centered on the user location.

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 visibilityPolicy: VisibilityPolicy

Defines the visibility policy of the current location button.