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

Chevron

interface Chevron : NativeObject

Base interface defining a chevron indicator that can be added to the map. When a new location is set, animation is used to move the chevron.

Types

AnimationOptions

open class AnimationOptions

Additional parameters that describe advanced animation options.

Functions

getPosition

abstract fun getPosition(): ChevronPosition!

Current chevron position.

hide

abstract fun hide(): Unit

Makes the chevron element invisible.

isDimmed

abstract fun isDimmed(): Boolean

True when the chevron element is active, false otherwise.

setAccuracyRadiusEnabled

abstract fun setAccuracyRadiusEnabled(accuracyRadiusEnabled: Boolean): Unit

Determines if the chevron accuracy radius should be displayed. Accuracy radius is disabled by default.

setBearing

abstract fun setBearing(bearingInDegrees: Double): Unit

Updates the chevron element bearing.

setDimmed

abstract fun setDimmed(dimmed: Boolean): Unit

Makes the chevron element inactive (dimmed).

setPosition

abstract fun setPosition(chevronPosition: ChevronPosition): Unit

Updates the chevron element position.

show

abstract fun show(): Unit

Makes the chevron element visible.

updateAnimationOptions

abstract fun updateAnimationOptions(options: Chevron.AnimationOptions!): Unit

Set new animation options.