CarProgressBarStyle.Builder


class CarProgressBarStyle.Builder


A builder of CarProgressBarStyle.

Summary

Public constructors

Returns an empty Builder instance.

Creates a new Builder, populated from the input CarProgressBarStyle.

Public functions

CarProgressBarStyle

Constructs the CarProgressBarStyle defined by this builder.

CarProgressBarStyle.Builder
setColor(color: CarColor?)

Sets the color of the actual progress bar.

CarProgressBarStyle.Builder
setStrokeCap(strokeCap: Int)

Sets the stroke cap of the progress bar.

CarProgressBarStyle.Builder

Sets the color of the track over which the progress bar is drawn.

Public constructors

Builder

Added in 1.9.0-alpha03
Builder()

Returns an empty Builder instance.

Builder

Added in 1.9.0-alpha03
Builder(style: CarProgressBarStyle)

Creates a new Builder, populated from the input CarProgressBarStyle.

Public functions

build

Added in 1.9.0-alpha03
fun build(): CarProgressBarStyle

Constructs the CarProgressBarStyle defined by this builder.

setColor

Added in 1.9.0-alpha03
fun setColor(color: CarColor?): CarProgressBarStyle.Builder

Sets the color of the actual progress bar. That is, the part of the component that reflects progress and which fully encompasses the component when progress is complete.

If a color is not set, or if the provided color does not pass a contrast check, the host will use a default color.

setStrokeCap

Added in 1.9.0-alpha03
fun setStrokeCap(strokeCap: Int): CarProgressBarStyle.Builder

Sets the stroke cap of the progress bar.

If unset, the host will use a default shape defined by the system.

setTrackColor

Added in 1.9.0-alpha03
fun setTrackColor(color: CarColor?): CarProgressBarStyle.Builder

Sets the color of the track over which the progress bar is drawn.

If a color is not set, or if the provided color does not pass a contrast check, the host will use a default color.