LayoutElementBuilders.DashedArcLine


@RequiresSchemaVersion(major = 1, minor = 500)
class LayoutElementBuilders.DashedArcLine : LayoutElementBuilders.ArcLayoutElement


A dashed arc line that can be placed in an Arc container. It is an arc line made up of arc line segments separated by gaps.

Summary

Public functions

LayoutElementBuilders.ArcDirectionProp?

Gets the direction in which this line is drawn.

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, including gaps.

LayoutElementBuilders.DashedLinePattern?

Gets the dashed line pattern which describes how the arc line is segmented by gaps.

ModifiersBuilders.ArcModifiers?

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

@Dimension(unit = 0) Float

Gets the thickness of this line.

String

Public functions

getArcDirection

Added in 1.3.0-alpha03
fun getArcDirection(): LayoutElementBuilders.ArcDirectionProp?

Gets the direction in which this line is drawn.

getColor

Added in 1.3.0-alpha03
fun getColor(): ColorBuilders.ColorProp?

Gets the color of this line.

getLayoutConstraintsForDynamicLength

Added in 1.3.0-alpha03
fun getLayoutConstraintsForDynamicLength(): DimensionBuilders.AngularLayoutConstraint?

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

getLength

Added in 1.3.0-alpha03
fun getLength(): DimensionBuilders.DegreesProp?

Gets the length of this line in degrees, including gaps.

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

getLinePattern

Added in 1.3.0-alpha03
fun getLinePattern(): LayoutElementBuilders.DashedLinePattern?

Gets the dashed line pattern which describes how the arc line is segmented by gaps.

getThickness

Added in 1.3.0-alpha03
fun getThickness(): @Dimension(unit = 0) Float

Gets the thickness of this line.

toString

fun toString(): String