public final class

Speed.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.hardware.info.Speed.Builder

Overview

A builder of Speed.

Summary

Constructors
publicBuilder()

Methods
public Speedbuild()

Constructs the Speed defined by this builder.

public Speed.BuildersetDisplaySpeedMetersPerSecond(CarValue<java.lang.Float> displaySpeedMetersPerSecond)

Sets the display speed in meters per second.

public Speed.BuildersetRawSpeedMetersPerSecond(CarValue<java.lang.Float> rawSpeedMetersPerSecond)

Sets the raw speed in meters per second.

public Speed.BuildersetSpeedDisplayUnit(CarValue<java.lang.Integer> speedDisplayUnit)

Sets the units used to display speed from the car hardware settings.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public Speed.Builder setRawSpeedMetersPerSecond(CarValue<java.lang.Float> rawSpeedMetersPerSecond)

Sets the raw speed in meters per second.

public Speed.Builder setDisplaySpeedMetersPerSecond(CarValue<java.lang.Float> displaySpeedMetersPerSecond)

Sets the display speed in meters per second. *

public Speed.Builder setSpeedDisplayUnit(CarValue<java.lang.Integer> speedDisplayUnit)

Sets the units used to display speed from the car hardware settings.

See CarUnit for valid speed units.

public Speed build()

Constructs the Speed defined by this builder.