-
public final class DonutConfigConfiguration class for DonutProgress animations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDonutConfig.Companion
-
Field Summary
Fields Modifier and Type Field Description private final AnimationSpec<Float>gapAngleAnimationSpecprivate final AnimationSpec<Float>masterProgressAnimationSpecprivate final AnimationSpec<Float>gapWidthAnimationSpecprivate final AnimationSpec<Float>strokeWidthAnimationSpecprivate final AnimationSpec<Color>backgroundLineColorAnimationSpecprivate final AnimationSpec<Float>capAnimationSpecprivate final AnimationSpec<Float>sectionAmountAnimationSpecprivate final AnimationSpec<Color>sectionColorAnimationSpec
-
Constructor Summary
Constructors Constructor Description DonutConfig(AnimationSpec<Float> gapAngleAnimationSpec, AnimationSpec<Float> masterProgressAnimationSpec, AnimationSpec<Float> gapWidthAnimationSpec, AnimationSpec<Float> strokeWidthAnimationSpec, AnimationSpec<Color> backgroundLineColorAnimationSpec, AnimationSpec<Float> capAnimationSpec, AnimationSpec<Float> sectionAmountAnimationSpec, AnimationSpec<Color> sectionColorAnimationSpec)
-
Method Summary
Modifier and Type Method Description final AnimationSpec<Float>getGapAngleAnimationSpec()final AnimationSpec<Float>getMasterProgressAnimationSpec()final AnimationSpec<Float>getGapWidthAnimationSpec()final AnimationSpec<Float>getStrokeWidthAnimationSpec()final AnimationSpec<Color>getBackgroundLineColorAnimationSpec()final AnimationSpec<Float>getCapAnimationSpec()final AnimationSpec<Float>getSectionAmountAnimationSpec()final AnimationSpec<Color>getSectionColorAnimationSpec()final DonutConfigcopyWithLayoutAnimationsSpec(AnimationSpec<Float> animationSpec)Returns new instance of DonutConfig with all layout animation specs set to provided animationSpec. final DonutConfigcopyWithColorAnimationsSpec(AnimationSpec<Color> animationSpec)Returns new instance of DonutConfig with all color animation specs set to provided animationSpec. -
-
Constructor Detail
-
DonutConfig
DonutConfig(AnimationSpec<Float> gapAngleAnimationSpec, AnimationSpec<Float> masterProgressAnimationSpec, AnimationSpec<Float> gapWidthAnimationSpec, AnimationSpec<Float> strokeWidthAnimationSpec, AnimationSpec<Color> backgroundLineColorAnimationSpec, AnimationSpec<Float> capAnimationSpec, AnimationSpec<Float> sectionAmountAnimationSpec, AnimationSpec<Color> sectionColorAnimationSpec)
- Parameters:
gapAngleAnimationSpec- animation spec for gap angle animationmasterProgressAnimationSpec- animation spec for master progress animationgapWidthAnimationSpec- animation spec for gap width animationstrokeWidthAnimationSpec- animation spec for stroke width animationbackgroundLineColorAnimationSpec- animation spec for background line color change animationcapAnimationSpec- animation spec for cap animationsectionAmountAnimationSpec- animation spec for entries progress animationssectionColorAnimationSpec- animation spec for entries color change animations
-
-
Method Detail
-
getGapAngleAnimationSpec
final AnimationSpec<Float> getGapAngleAnimationSpec()
-
getMasterProgressAnimationSpec
final AnimationSpec<Float> getMasterProgressAnimationSpec()
-
getGapWidthAnimationSpec
final AnimationSpec<Float> getGapWidthAnimationSpec()
-
getStrokeWidthAnimationSpec
final AnimationSpec<Float> getStrokeWidthAnimationSpec()
-
getBackgroundLineColorAnimationSpec
final AnimationSpec<Color> getBackgroundLineColorAnimationSpec()
-
getCapAnimationSpec
final AnimationSpec<Float> getCapAnimationSpec()
-
getSectionAmountAnimationSpec
final AnimationSpec<Float> getSectionAmountAnimationSpec()
-
getSectionColorAnimationSpec
final AnimationSpec<Color> getSectionColorAnimationSpec()
-
copyWithLayoutAnimationsSpec
final DonutConfig copyWithLayoutAnimationsSpec(AnimationSpec<Float> animationSpec)
Returns new instance of DonutConfig with all layout animation specs set to provided animationSpec.
- Parameters:
animationSpec- layout animation spec
-
copyWithColorAnimationsSpec
final DonutConfig copyWithColorAnimationsSpec(AnimationSpec<Color> animationSpec)
Returns new instance of DonutConfig with all color animation specs set to provided animationSpec.
- Parameters:
animationSpec- color animation spec
-
-
-
-