UserLocationViewStyles

data class UserLocationViewStyles(val normal: UserLocationViewStateStyle = UserLocationViewStateStyle(), val stale: UserLocationViewStateStyle = UserLocationViewStateStyle( foregroundColor = Color.GRAY, bearingColor = Color.GRAY ), @FloatRange(from = 0.0, to = 1.0) val outOfActiveLevelAlpha: Float = 0.5f, @ColorInt val accuracyColor: Int = Color.BLUE, @FloatRange(from = 0.0, to = 1.0) val accuracyAlpha: Float = 0.15f, val pulseEnabled: Boolean = false, @ColorInt val pulseColor: Int = Color.BLUE, @FloatRange(from = 0.0, to = 1.0) val pulseAlpha: Float = 0.4f)

A struct containing information about the user location view style for each state.

Constructors

Link copied to clipboard
constructor(normal: UserLocationViewStateStyle = UserLocationViewStateStyle(), stale: UserLocationViewStateStyle = UserLocationViewStateStyle( foregroundColor = Color.GRAY, bearingColor = Color.GRAY ), @FloatRange(from = 0.0, to = 1.0) outOfActiveLevelAlpha: Float = 0.5f, @ColorInt accuracyColor: Int = Color.BLUE, @FloatRange(from = 0.0, to = 1.0) accuracyAlpha: Float = 0.15f, pulseEnabled: Boolean = false, @ColorInt pulseColor: Int = Color.BLUE, @FloatRange(from = 0.0, to = 1.0) pulseAlpha: Float = 0.4f)

Properties

Link copied to clipboard

Set the opacity of the accuracy view to a value from 0 to 1, where 0 means the accuracy view is completely transparent and 1 means the view is completely opaque.

Link copied to clipboard

Solid color to use as the accuracy view color property.

Link copied to clipboard

The struct containing information about the user location view style for normal state.

Link copied to clipboard

The alpha for user location view when the user is out of the currently active level.

Link copied to clipboard

Sets the opacity of the LocationComponent's pulsing circle. The expected range is 0 to 1. An opacity of 1 makes the layer fully visible.

Link copied to clipboard

Sets the color of the LocationComponent's pulsing circle.

Link copied to clipboard

Enable or disable the LocationComponent's pulsing circle.

Link copied to clipboard

The struct containing information about the user location view style for stale state.