sdk-maps / com.tomtom.online.sdk.map / GpsIndicator

GpsIndicator

interface GpsIndicator : Serializable

The base interface defining a GPS indicator that can be added to the map.

Functions

hide

abstract fun hide(): Unit

Makes the indicator element invisible.

isDimmed

abstract fun isDimmed(): Boolean

True when the indicator element is active, false otherwise.

setBearing

abstract fun setBearing(bearingInDegrees: Double): Unit

Updates the indicator element bearing.

setDimmed

abstract fun setDimmed(dimmed: Boolean): Unit

Makes the indicator element inactive (dimmed).

setDimmedInaccuracyAreaColor

abstract fun setDimmedInaccuracyAreaColor(areaColor: Int): Unit

Updates the GPS inaccuracy radius color when the GPS signal accuracy is not within bounds.

setInaccuracyAreaColor

abstract fun setInaccuracyAreaColor(areaColor: Int): Unit

Updates the GPS inaccuracy radius color that is displayed when the signal is accurate.

setLocation

abstract fun setLocation(location: Location!): Unit
abstract fun setLocation(latLng: LatLng!, bearingInDegrees: Double, accuracyInMeters: Double, timeInMillis: Long): Unit

Updates the indicator element position.

show

abstract fun show(): Unit

Makes the indicator element visible.

Inheritors

BaseGpsPositionIndicator

open class BaseGpsPositionIndicator : GpsIndicator

Base class defining the position indicator that can be added to the map.