Lane.Builder


public final class Lane.Builder


A builder of Lane.

Public constructors

Returns an empty Builder instance.

Public methods

@NonNull Lane.Builder

Adds a direction a driver can take from this lane.

@NonNull Lane

Constructs the Lane defined by this builder.

Public constructors

Builder

Added in 1.0.0
public Builder()

Returns an empty Builder instance.

Public methods

addDirection

Added in 1.0.0
public @NonNull Lane.Builder addDirection(@NonNull LaneDirection direction)

Adds a direction a driver can take from this lane.

Throws
java.lang.NullPointerException

if direction is null

build

Added in 1.0.0
public @NonNull Lane build()

Constructs the Lane defined by this builder.

Details on the restricted non-SDK APIs in Android 14.

Updated Jan 9, 2025

Compatibility framework (Android 14)

Updated Jan 9, 2025

Common App Intents

Updated Sep 17, 2021