LayoutElementBuilders.ArcLine


@RequiresSchemaVersion(major = 1, minor = 0)
class LayoutElementBuilders.ArcLine : LayoutElementBuilders.ArcLayoutElement


A line that can be used in an Arc and renders as a round progress bar.

Summary

Nested types

Builder for ArcLine.

Public functions

LayoutElementBuilders.ArcDirectionProp?

Gets defines the direction in which line drawn.

ColorBuilders.Brush?

Gets a brush used to draw this line.

ColorBuilders.ColorProp?

Gets the color of this line.

DimensionBuilders.AngularLayoutConstraint?

Gets the bounding constraints for the layout affected by the dynamic value from getLength.

DimensionBuilders.DegreesProp?

Gets the length of this line, in degrees.

ModifiersBuilders.ArcModifiers?

Gets androidx.wear.protolayout.ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.StrokeCapProp?

Gets the line stroke cap.

DimensionBuilders.DpProp?

Gets the thickness of this line.

String

Public functions

getArcDirection

Added in 1.2.0
fun getArcDirection(): LayoutElementBuilders.ArcDirectionProp?

Gets defines the direction in which line drawn.

getBrush

Added in 1.1.0
fun getBrush(): ColorBuilders.Brush?

Gets a brush used to draw this line. If set, the brush will be used instead of the color provided in setColor().

getColor

Added in 1.0.0
fun getColor(): ColorBuilders.ColorProp?

Gets the color of this line.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

If a brush is set, this color will not be used.

getLayoutConstraintsForDynamicLength

Added in 1.0.0
fun getLayoutConstraintsForDynamicLength(): DimensionBuilders.AngularLayoutConstraint?

Gets the bounding constraints for the layout affected by the dynamic value from getLength.

getLength

Added in 1.0.0
fun getLength(): DimensionBuilders.DegreesProp?

Gets the length of this line, in degrees. If not defined, defaults to 0.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

When using a dynamic value, make sure to specify the bounding constraints for the affected layout element through setLayoutConstraintsForDynamicLength(AngularLayoutConstraint) otherwise build() fails.

getStrokeCap

Added in 1.0.0
fun getStrokeCap(): LayoutElementBuilders.StrokeCapProp?

Gets the line stroke cap. If not defined, defaults to STROKE_CAP_ROUND.

getThickness

Added in 1.0.0
fun getThickness(): DimensionBuilders.DpProp?

Gets the thickness of this line. If not defined, defaults to 0.

toString

fun toString(): String