ColorBuilders.ColorProp
@RequiresSchemaVersion(major = 1, minor = 0)
class ColorBuilders.ColorProp
A property defining a color.
Summary
Nested types |
|---|
|
Builder for |
Public functions |
|
|---|---|
@ColorInt Int |
getArgb()Gets the static color value, in ARGB format. |
DynamicBuilders.DynamicColor? |
Gets the dynamic value. |
String |
toString() |
Public functions
getArgb
fun getArgb(): @ColorInt Int
Gets the static color value, in ARGB format. If a dynamic value is also set and the renderer supports dynamic values for the corresponding field, this static value will be ignored. If the static value is not specified, zero (equivalent to TRANSPARENT) will be used instead.
getDynamicValue
fun getDynamicValue(): DynamicBuilders.DynamicColor?
Gets the dynamic value. Note that when setting this value, the static value is still required to be set to support older renderers that only read the static value. If
dynamicValue has an invalid result, the provided static value will be used instead.