Google is committed to advancing racial equity for Black communities. See how.

ColorPropKey

class ColorPropKey : PropKey<Color, AnimationVector4D>
kotlin.Any
   ↳ androidx.compose.animation.ColorPropKey

Built-in property key for Color properties.

Summary

Public constructors
<init>(colorSpace: ColorSpace = ColorSpaces.Srgb, label: String = "ColorPropKey")

Built-in property key for Color properties.

Properties
String

Label for distinguishing different prop keys in Android Studio.

TwoWayConverter<Color, AnimationVector4D>

A TwoWayConverter that converts T (the data type to be animated) to and from V (any subclass of AnimationVector).

Public constructors

<init>

ColorPropKey(
    colorSpace: ColorSpace = ColorSpaces.Srgb,
    label: String = "ColorPropKey")

Built-in property key for Color properties.

Parameters
label: String = "ColorPropKey" Label for distinguishing different prop keys in Android Studio.

Properties

label

val label: String

Label for distinguishing different prop keys in Android Studio.

typeConverter

val typeConverter: TwoWayConverter<Color, AnimationVector4D>

A TwoWayConverter that converts T (the data type to be animated) to and from V (any subclass of AnimationVector).