CarProgressBar.Builder


class CarProgressBar.Builder


A builder of CarProgressBar.

Summary

Public constructors

Builder(progress: @FloatRange(from = 0.0, to = 1.0) Float)

Creates a builder with the specified progress.

Public functions

CarProgressBar

Constructs the CarProgressBar defined by this builder.

CarProgressBar.Builder

Sets the style of the progress bar.

Public constructors

Builder

Added in 1.8.0
Builder(progress: @FloatRange(from = 0.0, to = 1.0) Float)

Creates a builder with the specified progress.

Values outside the range [0.0, 1.0] will be coerced to the nearest bound.

Parameters
progress: @FloatRange(from = 0.0, to = 1.0) Float

the progress, from 0.0 to 1.0

Throws
java.lang.IllegalArgumentException

if progress is NaN or infinite

Public functions

build

Added in 1.8.0
fun build(): CarProgressBar

Constructs the CarProgressBar defined by this builder.

setStyle

Added in 1.9.0-alpha02
fun setStyle(style: CarProgressBarStyle): CarProgressBar.Builder

Sets the style of the progress bar.

Throws
java.lang.NullPointerException

if style is null