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 style.

Summary

Nested types

public final class CarProgressBar.Builder

A builder of CarProgressBar.

Public methods

boolean
float

Returns the progress between 0.0 and 1.0.

@Nullable CarProgressBarStyle

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

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getProgress

Added in 1.8.0
public float getProgress()

Returns the progress between 0.0 and 1.0.

getStyle

Added in 1.9.0-alpha02
public @Nullable CarProgressBarStyle getStyle()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()