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

DonutConfig
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>)
animation spec for gap angle animation

Types

Companion
Link copied to clipboard
object Companion

Functions

component1
Link copied to clipboard
operator fun component1(): AnimationSpec<Float>
component2
Link copied to clipboard
operator fun component2(): AnimationSpec<Float>
component3
Link copied to clipboard
operator fun component3(): AnimationSpec<Float>
component4
Link copied to clipboard
operator fun component4(): AnimationSpec<Float>
component5
Link copied to clipboard
operator fun component5(): AnimationSpec<Color>
component6
Link copied to clipboard
operator fun component6(): AnimationSpec<Float>
component7
Link copied to clipboard
operator fun component7(): AnimationSpec<Float>
component8
Link copied to clipboard
operator fun component8(): AnimationSpec<Color>
copy
Link copied to clipboard
fun copy(gapAngleAnimationSpec: AnimationSpec<Float>, masterProgressAnimationSpec: AnimationSpec<Float>, gapWidthAnimationSpec: AnimationSpec<Float>, strokeWidthAnimationSpec: AnimationSpec<Float>, backgroundLineColorAnimationSpec: AnimationSpec<Color>, capAnimationSpec: AnimationSpec<Float>, sectionAmountAnimationSpec: AnimationSpec<Float>, sectionColorAnimationSpec: AnimationSpec<Color>): DonutConfig
copyWithColorAnimationsSpec
Link copied to clipboard
fun copyWithColorAnimationsSpec(animationSpec: AnimationSpec<Color>): DonutConfig
Returns new instance of DonutConfig with all color animation specs set to provided animationSpec.
copyWithLayoutAnimationsSpec
Link copied to clipboard
fun copyWithLayoutAnimationsSpec(animationSpec: AnimationSpec<Float>): DonutConfig
Returns new instance of DonutConfig with all layout animation specs set to provided animationSpec.
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

backgroundLineColorAnimationSpec
Link copied to clipboard
val backgroundLineColorAnimationSpec: AnimationSpec<Color>
animation spec for background line color change animation
capAnimationSpec
Link copied to clipboard
val capAnimationSpec: AnimationSpec<Float>
animation spec for cap animation
gapAngleAnimationSpec
Link copied to clipboard
val gapAngleAnimationSpec: AnimationSpec<Float>
animation spec for gap angle animation
gapWidthAnimationSpec
Link copied to clipboard
val gapWidthAnimationSpec: AnimationSpec<Float>
animation spec for gap width animation
masterProgressAnimationSpec
Link copied to clipboard
val masterProgressAnimationSpec: AnimationSpec<Float>
animation spec for master progress animation
sectionAmountAnimationSpec
Link copied to clipboard
val sectionAmountAnimationSpec: AnimationSpec<Float>
animation spec for entries progress animations
sectionColorAnimationSpec
Link copied to clipboard
val sectionColorAnimationSpec: AnimationSpec<Color>
animation spec for entries color change animations
strokeWidthAnimationSpec
Link copied to clipboard
val strokeWidthAnimationSpec: AnimationSpec<Float>
animation spec for stroke width animation