ProgressIndicatorColors

Added in 1.1.0
Deprecated in 1.2.0

class ProgressIndicatorColors


Represents the indicator and track colors used in a progress indicator Tiles component.

See DEFAULT_COLORS for the default colors used in a .

Summary

Public constructors

ProgressIndicatorColors(
    indicatorColor: ColorBuilders.ColorProp,
    trackColor: ColorBuilders.ColorProp
)

Constructor for ProgressIndicatorColors object.

ProgressIndicatorColors(
    indicatorColor: @ColorInt Int,
    trackColor: @ColorInt Int
)

Constructor for ProgressIndicatorColors object.

Public functions

ColorBuilders.ColorProp

The indicator color to be used for a progress indicator Tiles component.

ColorBuilders.ColorProp

The background track color to be used for a progress indicator Tiles component.

java-static ProgressIndicatorColors

Returns a ProgressIndicatorColors object, using the current Primary color for indicator color and the current Surface color for the track color from the given .

Public constructors

ProgressIndicatorColors

Added in 1.1.0
Deprecated in 1.2.0
ProgressIndicatorColors(
    indicatorColor: ColorBuilders.ColorProp,
    trackColor: ColorBuilders.ColorProp
)

Constructor for ProgressIndicatorColors object.

Parameters
indicatorColor: ColorBuilders.ColorProp

The indicator color to be used for a progress indicator Tiles component.

trackColor: ColorBuilders.ColorProp

The background track color to be used for a progress indicator Tiles component.

ProgressIndicatorColors

Added in 1.1.0
Deprecated in 1.2.0
ProgressIndicatorColors(
    indicatorColor: @ColorInt Int,
    trackColor: @ColorInt Int
)

Constructor for ProgressIndicatorColors object.

Parameters
indicatorColor: @ColorInt Int

The indicator color to be used for a progress indicator Tiles component. Should be in ARGB format.

trackColor: @ColorInt Int

The background track color to be used for a progress indicator Tiles component. Should be in ARGB format.

Public functions

getIndicatorColor

Added in 1.1.0
Deprecated in 1.2.0
fun getIndicatorColor(): ColorBuilders.ColorProp

The indicator color to be used for a progress indicator Tiles component.

getTrackColor

Added in 1.1.0
Deprecated in 1.2.0
fun getTrackColor(): ColorBuilders.ColorProp

The background track color to be used for a progress indicator Tiles component.

progressIndicatorColors

Added in 1.1.0
Deprecated in 1.2.0
java-static fun progressIndicatorColors(colors: Colors): ProgressIndicatorColors

Returns a ProgressIndicatorColors object, using the current Primary color for indicator color and the current Surface color for the track color from the given .