TravelEstimate.Builder
public
static
final
class
TravelEstimate.Builder
extends Object
java.lang.Object | |
↳ | com.google.android.libraries.car.app.navigation.model.TravelEstimate.Builder |
A builder of TravelEstimate
.
Summary
Public methods | |
---|---|
TravelEstimate
|
build()
|
TravelEstimate.Builder
|
setRemainingDistanceColor(CarColor remainingDistanceColor)
Sets the color of the remaining distance text. |
TravelEstimate.Builder
|
setRemainingTimeColor(CarColor remainingTimeColor)
Sets the color of the remaining time text. |
Inherited methods | |
---|---|
Public methods
setRemainingDistanceColor
public TravelEstimate.Builder setRemainingDistanceColor (CarColor remainingDistanceColor)
Sets the color of the remaining distance text.
The host may ignore this color depending on the capabilities of the target screen.
If not set, CarColor.DEFAULT
will be used.
Custom colors created with CarColor.createCustom(int, int)
are not supported.
Parameters | |
---|---|
remainingDistanceColor |
CarColor |
Returns | |
---|---|
TravelEstimate.Builder |
Throws | |
---|---|
IllegalArgumentException |
if remainingDistanceColor is not supported. |
NullPointerException |
if remainingDistanceColor is null .
|
setRemainingTimeColor
public TravelEstimate.Builder setRemainingTimeColor (CarColor remainingTimeColor)
Sets the color of the remaining time text.
The host may ignore this color depending on the capabilities of the target screen.
If not set, CarColor.DEFAULT
will be used.
Custom colors created with CarColor.createCustom(int, int)
are not supported.
Parameters | |
---|---|
remainingTimeColor |
CarColor |
Returns | |
---|---|
TravelEstimate.Builder |
Throws | |
---|---|
IllegalArgumentException |
if remainingTimeColor is not supported. |
NullPointerException |
if remainingTimecolor is null
|