DonutConfig

@Model()
data class DonutConfig(isGapAngleAnimationEnabled: Boolean, gapAngleAnimationBuilder: AnimationBuilder<Float>, isMasterProgressAnimationEnabled: Boolean, masterProgressAnimationBuilder: AnimationBuilder<Float>, isGapWidthAnimationEnabled: Boolean, gapWidthAnimationBuilder: AnimationBuilder<Float>, isStrokeWidthAnimationEnabled: Boolean, strokeWidthAnimationBuilder: AnimationBuilder<Float>, isBackgroundLineColorAnimationEnabled: Boolean, backgroundLineColorAnimationBuilder: AnimationBuilder<Color>, isCapAnimationEnabled: Boolean, capAnimationBuilder: AnimationBuilder<Float>, isSectionAmountAnimationEnabled: Boolean, sectionAmountAnimationBuilder: AnimationBuilder<Float>, isSectionColorAnimationEnabled: Boolean, sectionColorAnimationBuilder: AnimationBuilder<Color>)

Configuration class for DonutProgress

Parameters

isGapAngleAnimationEnabled

enabled or disable gap angle animation

gapAngleAnimationBuilder

animation builder for gap angle animation

isMasterProgressAnimationEnabled

enabled or disable master progress animation

masterProgressAnimationBuilder

animation builder for master progress animation

isGapWidthAnimationEnabled

enabled or disable gap width animation

gapWidthAnimationBuilder

animation builder for gap width animation

isStrokeWidthAnimationEnabled

enabled or disable stroke width animation

strokeWidthAnimationBuilder

animation builder for stroke width animation

isBackgroundLineColorAnimationEnabled

enabled or disable background line color change animation

backgroundLineColorAnimationBuilder

animation builder for background line color change animation

isCapAnimationEnabled

enabled or disable cap animation

capAnimationBuilder

animation builder for cap animation

isSectionAmountAnimationEnabled

enabled or disable entries progress animations

sectionAmountAnimationBuilder

animation builder for entries progress animations

isSectionColorAnimationEnabled

enabled or disable entries color change animations

sectionColorAnimationBuilder

animation builder for entries color change animations

Constructors

DonutConfig
Link copied to clipboard
fun DonutConfig(isGapAngleAnimationEnabled: Boolean = true, gapAngleAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isMasterProgressAnimationEnabled: Boolean = true, masterProgressAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isGapWidthAnimationEnabled: Boolean = true, gapWidthAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isStrokeWidthAnimationEnabled: Boolean = true, strokeWidthAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isBackgroundLineColorAnimationEnabled: Boolean = true, backgroundLineColorAnimationBuilder: AnimationBuilder<Color> = getDefaultColorAnimationBuilder(), isCapAnimationEnabled: Boolean = true, capAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isSectionAmountAnimationEnabled: Boolean = true, sectionAmountAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isSectionColorAnimationEnabled: Boolean = true, sectionColorAnimationBuilder: AnimationBuilder<Color> = getDefaultColorAnimationBuilder())
enabled or disable gap angle animation

Types

Companion
Link copied to clipboard
object Companion

Functions

component1
Link copied to clipboard
operator fun component1(): Boolean
component10
Link copied to clipboard
operator fun component10(): AnimationBuilder<Color>
component11
Link copied to clipboard
operator fun component11(): Boolean
component12
Link copied to clipboard
operator fun component12(): AnimationBuilder<Float>
component13
Link copied to clipboard
operator fun component13(): Boolean
component14
Link copied to clipboard
operator fun component14(): AnimationBuilder<Float>
component15
Link copied to clipboard
operator fun component15(): Boolean
component16
Link copied to clipboard
operator fun component16(): AnimationBuilder<Color>
component2
Link copied to clipboard
operator fun component2(): AnimationBuilder<Float>
component3
Link copied to clipboard
operator fun component3(): Boolean
component4
Link copied to clipboard
operator fun component4(): AnimationBuilder<Float>
component5
Link copied to clipboard
operator fun component5(): Boolean
component6
Link copied to clipboard
operator fun component6(): AnimationBuilder<Float>
component7
Link copied to clipboard
operator fun component7(): Boolean
component8
Link copied to clipboard
operator fun component8(): AnimationBuilder<Float>
component9
Link copied to clipboard
operator fun component9(): Boolean
copy
Link copied to clipboard
fun copy(isGapAngleAnimationEnabled: Boolean = true, gapAngleAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isMasterProgressAnimationEnabled: Boolean = true, masterProgressAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isGapWidthAnimationEnabled: Boolean = true, gapWidthAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isStrokeWidthAnimationEnabled: Boolean = true, strokeWidthAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isBackgroundLineColorAnimationEnabled: Boolean = true, backgroundLineColorAnimationBuilder: AnimationBuilder<Color> = getDefaultColorAnimationBuilder(), isCapAnimationEnabled: Boolean = true, capAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isSectionAmountAnimationEnabled: Boolean = true, sectionAmountAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), isSectionColorAnimationEnabled: Boolean = true, sectionColorAnimationBuilder: AnimationBuilder<Color> = getDefaultColorAnimationBuilder()): DonutConfig
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
setAnimationsEnabled
Link copied to clipboard
fun setAnimationsEnabled(isEnabled: Boolean)
Enable or disable all animations
setColorAnimationBuilder
Link copied to clipboard
fun setColorAnimationBuilder(builder: AnimationBuilder<Color>)
Set animation builder for all color change animations
setColorAnimationsEnabled
Link copied to clipboard
fun setColorAnimationsEnabled(isEnabled: Boolean)
Enable or disable all layout color change animations
setLayoutAnimationBuilder
Link copied to clipboard
fun setLayoutAnimationBuilder(builder: AnimationBuilder<Float>)
Set animation builder for all layout animations
setLayoutAnimationsEnabled
Link copied to clipboard
fun setLayoutAnimationsEnabled(isEnabled: Boolean)
Enable or disable all layout change animations
toString
Link copied to clipboard
open override fun toString(): String

Properties

backgroundLineColorAnimationBuilder
Link copied to clipboard
var backgroundLineColorAnimationBuilder: AnimationBuilder<Color>
animation builder for background line color change animation
capAnimationBuilder
Link copied to clipboard
var capAnimationBuilder: AnimationBuilder<Float>
animation builder for cap animation
gapAngleAnimationBuilder
Link copied to clipboard
var gapAngleAnimationBuilder: AnimationBuilder<Float>
animation builder for gap angle animation
gapWidthAnimationBuilder
Link copied to clipboard
var gapWidthAnimationBuilder: AnimationBuilder<Float>
animation builder for gap width animation
isBackgroundLineColorAnimationEnabled
Link copied to clipboard
var isBackgroundLineColorAnimationEnabled: Boolean = true
enabled or disable background line color change animation
isCapAnimationEnabled
Link copied to clipboard
var isCapAnimationEnabled: Boolean = true
enabled or disable cap animation
isGapAngleAnimationEnabled
Link copied to clipboard
var isGapAngleAnimationEnabled: Boolean = true
enabled or disable gap angle animation
isGapWidthAnimationEnabled
Link copied to clipboard
var isGapWidthAnimationEnabled: Boolean = true
enabled or disable gap width animation
isMasterProgressAnimationEnabled
Link copied to clipboard
var isMasterProgressAnimationEnabled: Boolean = true
enabled or disable master progress animation
isSectionAmountAnimationEnabled
Link copied to clipboard
var isSectionAmountAnimationEnabled: Boolean = true
enabled or disable entries progress animations
isSectionColorAnimationEnabled
Link copied to clipboard
var isSectionColorAnimationEnabled: Boolean = true
enabled or disable entries color change animations
isStrokeWidthAnimationEnabled
Link copied to clipboard
var isStrokeWidthAnimationEnabled: Boolean = true
enabled or disable stroke width animation
masterProgressAnimationBuilder
Link copied to clipboard
var masterProgressAnimationBuilder: AnimationBuilder<Float>
animation builder for master progress animation
sectionAmountAnimationBuilder
Link copied to clipboard
var sectionAmountAnimationBuilder: AnimationBuilder<Float>
animation builder for entries progress animations
sectionColorAnimationBuilder
Link copied to clipboard
var sectionColorAnimationBuilder: AnimationBuilder<Color>
animation builder for entries color change animations
strokeWidthAnimationBuilder
Link copied to clipboard
var strokeWidthAnimationBuilder: AnimationBuilder<Float>
animation builder for stroke width animation