CarProgressBar


@CarProtocol
@RequiresCarApi(value = 9)
@ExperimentalCarApi
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

A builder of CarProgressBar.

Public functions

Boolean
equals(other: Any?)
CarColor?

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

Float

Returns the progress between 0.0 and 1.0.

Int
String

Public functions

equals

fun equals(other: Any?): Boolean

getColor

Added in 1.8.0-beta01
fun getColor(): CarColor?

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

getProgress

Added in 1.8.0-beta01
fun getProgress(): Float

Returns the progress between 0.0 and 1.0.

hashCode

fun hashCode(): Int

toString

fun toString(): String