BasicCircularProgressIndicatorBehavior

class BasicCircularProgressIndicatorBehavior(var foreground: (ProgressIndicator) -> Paint, var background: (ProgressIndicator) -> Paint? = null, var thickness: Double, var outline: (ProgressIndicator) -> Stroke? = null, var startAngle: Measure<Angle> = -90 * degrees, var direction: RotationDirection = Clockwise, var startCap: SegmentBuilder = { _,_ -> }, var endCap: SegmentBuilder = { _,it -> lineTo(it) }) : ProgressIndicatorBehavior<ProgressIndicator> (source)

Basic behavior for circular ProgressIndicator that uses a filling ring to indicate progress.

Parameters

foreground

paint used to fill the progress portion

background

paint used to fill the "groove"

thickness

of the ring (including any outline)

startAngle

where the progress begins

direction

progress is drawn around the ring

startCap

drawn at the tip of the starting point on the progress ring

endCap

drawn at the tip of the ending point on the progress ring

Constructors

Link copied to clipboard
constructor(foreground: Paint, background: Paint? = null, thickness: Double, outline: Stroke? = null, startAngle: Measure<Angle> = -90 * degrees, direction: RotationDirection = Clockwise, startCap: SegmentBuilder = { _,_ -> }, endCap: SegmentBuilder = { _,it -> lineTo(it) })
constructor(foreground: (ProgressIndicator) -> Paint, background: (ProgressIndicator) -> Paint? = null, thickness: Double, outline: (ProgressIndicator) -> Stroke? = null, startAngle: Measure<Angle> = -90 * degrees, direction: RotationDirection = Clockwise, startCap: SegmentBuilder = { _,_ -> }, endCap: SegmentBuilder = { _,it -> lineTo(it) })

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

paint used to fill the "groove"

Link copied to clipboard

progress is drawn around the ring

Link copied to clipboard
Link copied to clipboard

drawn at the tip of the ending point on the progress ring

Link copied to clipboard

paint used to fill the progress portion

Link copied to clipboard
Link copied to clipboard

where the progress begins

Link copied to clipboard

drawn at the tip of the starting point on the progress ring

Link copied to clipboard

of the ring (including any outline)

Functions

Link copied to clipboard
open override fun render(view: ProgressIndicator, canvas: Canvas)

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun contains(view: ProgressIndicator, point: Point): Boolean
Link copied to clipboard
open override fun install(view: ProgressIndicator)
Link copied to clipboard
Link copied to clipboard
open override fun uninstall(view: ProgressIndicator)