CarProgressBar


@CarProtocol
@RequiresCarApi(value = 9)
@ExperimentalCarApi
public final class CarProgressBar


A model that represents a progress bar to display in the car screen.

A progress bar displays the progress of a task or playback. It is a non-interactive element that can be used in templates that support it, such as in a Row or GridItem.

The progress bar takes in the progress value as a mandatory field and can optionally set a custom color.

Summary

Nested types

public final class CarProgressBar.Builder

A builder of CarProgressBar.

Public methods

boolean
@Nullable CarColor

Returns the color of the progress bar, or null if not set.

float

Returns the progress between 0.0 and 1.0.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getColor

Added in 1.8.0-beta01
public @Nullable CarColor getColor()

Returns the color of the progress bar, or null if not set.

getProgress

Added in 1.8.0-beta01
public float getProgress()

Returns the progress between 0.0 and 1.0.

hashCode

public int hashCode()

toString

public @NonNull String toString()