Donut Config
data class DonutConfig(gapAngleAnimationSpec: AnimationSpec<Float>, masterProgressAnimationSpec: AnimationSpec<Float>, gapWidthAnimationSpec: AnimationSpec<Float>, strokeWidthAnimationSpec: AnimationSpec<Float>, backgroundLineColorAnimationSpec: AnimationSpec<Color>, capAnimationSpec: AnimationSpec<Float>, sectionAmountAnimationSpec: AnimationSpec<Float>, sectionColorAnimationSpec: AnimationSpec<Color>)
Content copied to clipboard
Configuration class for DonutProgress animations.
Parameters
gap Angle Animation Spec
animation spec for gap angle animation
master Progress Animation Spec
animation spec for master progress animation
gap Width Animation Spec
animation spec for gap width animation
stroke Width Animation Spec
animation spec for stroke width animation
background Line Color Animation Spec
animation spec for background line color change animation
cap Animation Spec
animation spec for cap animation
section Amount Animation Spec
animation spec for entries progress animations
section Color Animation Spec
animation spec for entries color change animations
Constructors
Link copied to clipboard
fun DonutConfig(gapAngleAnimationSpec: AnimationSpec<Float>, masterProgressAnimationSpec: AnimationSpec<Float>, gapWidthAnimationSpec: AnimationSpec<Float>, strokeWidthAnimationSpec: AnimationSpec<Float>, backgroundLineColorAnimationSpec: AnimationSpec<Color>, capAnimationSpec: AnimationSpec<Float>, sectionAmountAnimationSpec: AnimationSpec<Float>, sectionColorAnimationSpec: AnimationSpec<Color>)
Content copied to clipboard
Types
Functions
Link copied to clipboard
fun copyWithColorAnimationsSpec(animationSpec: AnimationSpec<Color>): DonutConfig
Content copied to clipboard
Returns new instance of DonutConfig with all color animation specs set to provided animationSpec.
Link copied to clipboard
fun copyWithLayoutAnimationsSpec(animationSpec: AnimationSpec<Float>): DonutConfig
Content copied to clipboard
Returns new instance of DonutConfig with all layout animation specs set to provided animationSpec.