Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

Builder

class Builder
kotlin.Any
   ↳ androidx.car.cluster.navigation.LaneDirection.Builder

Builder for creating a LaneDirection

Summary

Public constructors

Builder for creating a LaneDirection

Public methods

LaneDirection

Returns a LaneDirection built with the provided information.

LaneDirection.Builder
setHighlighted(highlighted: Boolean)

Sets whether this a direction the driver could take in order to stay in the navigation route.

LaneDirection.Builder
setShape(@NonNull shape: LaneDirection.Shape, @NonNull vararg fallbacks: LaneDirection.Shape!)

Sets the Shape of this lane direction, and any fallback values that could be used by the consumer if the shape is unknown to it.

Public constructors

<init>

Builder()

Builder for creating a LaneDirection

Public methods

build

@NonNull fun build(): LaneDirection

Returns a LaneDirection built with the provided information.

setHighlighted

@NonNull fun setHighlighted(highlighted: Boolean): LaneDirection.Builder

Sets whether this a direction the driver could take in order to stay in the navigation route.

Parameters
highlighted Boolean: true if this is a recommended lane direction, or false otherwise.
Return
LaneDirection.Builder: this object for chaining

setShape

@NonNull fun setShape(@NonNull shape: LaneDirection.Shape, @NonNull vararg fallbacks: LaneDirection.Shape!): LaneDirection.Builder

Sets the Shape of this lane direction, and any fallback values that could be used by the consumer if the shape is unknown to it.

Parameters
shape LaneDirection.Shape: lane direction shape
fallbacks LaneDirection.Shape: Variations of shape, in case the consumer of this API doesn't know the main one (used for backward compatibility).
Return
LaneDirection.Builder: this object for chaining