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 progress bar.

CarProgressBarStyle.Builder
setStrokeCap(strokeCap: Int)

Sets the stroke cap of the progress bar.

Public constructors

Builder

Added in 1.9.0-alpha02
Builder()

Returns an empty Builder instance.

Builder

Added in 1.9.0-alpha02
Builder(style: CarProgressBarStyle)

Creates a new Builder, populated from the input CarProgressBarStyle.

Public functions

build

Added in 1.9.0-alpha02
fun build(): CarProgressBarStyle

Constructs the CarProgressBarStyle defined by this builder.

setColor

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

Sets the color of the progress bar.

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