Skip to Content

Instruction

data class Instructionconstructor(val htmlText: String, val maneuver: String?)

Holds a navigation instruction consisting of HTML-formatted text and an optional maneuver identifier.

The spanned property provides a lazily-computed Spanned  representation of the HTML text, suitable for display in Android TextViews with rich formatting.

See also

SdkStepRoute

Constructors

Instructionconstructor(htmlText: String , maneuver: String ?)

Properties

htmlText

val htmlText: String

The instruction text in HTML format (e.g., “Turn left onto Main St”).

maneuver

val maneuver: String?

Optional maneuver identifier (e.g., “turn-left”, “turn-right”, “straight”), or null if no specific maneuver applies.

spanned

val spanned: Spanned
Last updated on