DonutConfig

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>)

Configuration class for DonutProgress animations.

Parameters

gapAngleAnimationSpec

animation spec for gap angle animation

masterProgressAnimationSpec

animation spec for master progress animation

gapWidthAnimationSpec

animation spec for gap width animation

strokeWidthAnimationSpec

animation spec for stroke width animation

backgroundLineColorAnimationSpec

animation spec for background line color change animation

capAnimationSpec

animation spec for cap animation

sectionAmountAnimationSpec

animation spec for entries progress animations

sectionColorAnimationSpec

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>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun copyWithColorAnimationsSpec(animationSpec: AnimationSpec<Color>): DonutConfig

Returns new instance of DonutConfig with all color animation specs set to provided animationSpec.

Link copied to clipboard
fun copyWithLayoutAnimationsSpec(animationSpec: AnimationSpec<Float>): DonutConfig

Returns new instance of DonutConfig with all layout animation specs set to provided animationSpec.

Properties

Link copied to clipboard
val backgroundLineColorAnimationSpec: AnimationSpec<Color>
Link copied to clipboard
val capAnimationSpec: AnimationSpec<Float>
Link copied to clipboard
val gapAngleAnimationSpec: AnimationSpec<Float>
Link copied to clipboard
val gapWidthAnimationSpec: AnimationSpec<Float>
Link copied to clipboard
val masterProgressAnimationSpec: AnimationSpec<Float>
Link copied to clipboard
val sectionAmountAnimationSpec: AnimationSpec<Float>
Link copied to clipboard
val sectionColorAnimationSpec: AnimationSpec<Color>
Link copied to clipboard
val strokeWidthAnimationSpec: AnimationSpec<Float>