BannerView

@Serializable
data class BannerView(val text: String, val components: List<BannerComponents>? = null, val type: StepManeuver.Type? = null, val modifier: ManeuverModifier.Type? = null)

Includes both plain text information that can be visualized inside your navigation application along with the text string broken down into BannerComponents which may or may not include a image url. To receive this information, your request must have MapboxDirections.Builder#bannerInstructions() set to true.

Since

5.0.0

Constructors

Link copied to clipboard
constructor(text: String, components: List<BannerComponents>? = null, type: StepManeuver.Type? = null, modifier: ManeuverModifier.Type? = null)

Types

Link copied to clipboard
class Builder(text: String)

Builder class for creating BannerView instances.

Properties

Link copied to clipboard

A part or element of the BannerInstructions.

Link copied to clipboard

This indicates the mode of the maneuver. If type is of turn, the modifier indicates the change in direction accomplished through the turn. If the type is of depart/arrive, the modifier indicates the position of waypoint from the current direction of travel.

Link copied to clipboard

Plain text with all the BannerComponents text combined.

Link copied to clipboard
val type: StepManeuver.Type? = null

This indicates the type of maneuver.

Functions

Link copied to clipboard

Creates a builder initialized with the current values of the BannerView instance.