LayoutElementBuilders.DashedArcLine.Builder


class LayoutElementBuilders.DashedArcLine.Builder


Builder for DashedArcLine.

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 500)
Builder()

Creates an instance of Builder.

Public functions

LayoutElementBuilders.DashedArcLine

Builds an instance with the values accumulated in this Builder.

LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setArcDirection(arcDirection: Int)

Sets the direction in which this line is drawn.

LayoutElementBuilders.DashedArcLine.Builder

Sets the direction in which this line is drawn.

LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setColor(color: ColorBuilders.ColorProp)

Sets the color of this line.

LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setLayoutConstraintsForDynamicLength(
    angularLayoutConstraint: DimensionBuilders.AngularLayoutConstraint
)

Sets the bounding constraints for the layout affected by the dynamic value from setLength.

LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setLength(length: DimensionBuilders.DegreesProp)

Sets the length of this line, in degrees.

LayoutElementBuilders.DashedArcLine.Builder

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

LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setModifiers(modifiers: ModifiersBuilders.ArcModifiers)

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

LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setThickness(thickness: @Dimension(unit = 0) Float)

Sets the thickness of this line.

Public constructors

Builder

Added in 1.3.0-alpha05
@RequiresSchemaVersion(major = 1, minor = 500)
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.3.0-alpha05
fun build(): LayoutElementBuilders.DashedArcLine

Builds an instance with the values accumulated in this Builder.

setArcDirection

Added in 1.3.0-alpha05
@RequiresSchemaVersion(major = 1, minor = 500)
fun setArcDirection(arcDirection: Int): LayoutElementBuilders.DashedArcLine.Builder

Sets the direction in which this line is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE.

setArcDirection

Added in 1.3.0-alpha05
@RequiresSchemaVersion(major = 1, minor = 500)
fun setArcDirection(arcDirection: LayoutElementBuilders.ArcDirectionProp): LayoutElementBuilders.DashedArcLine.Builder

Sets the direction in which this line is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE.

setColor

Added in 1.3.0-alpha05
@RequiresSchemaVersion(major = 1, minor = 500)
fun setColor(color: ColorBuilders.ColorProp): LayoutElementBuilders.DashedArcLine.Builder

Sets the color of this line.

setLayoutConstraintsForDynamicLength

Added in 1.3.0-alpha05
@RequiresSchemaVersion(major = 1, minor = 500)
fun setLayoutConstraintsForDynamicLength(
    angularLayoutConstraint: DimensionBuilders.AngularLayoutConstraint
): LayoutElementBuilders.DashedArcLine.Builder

Sets the bounding constraints for the layout affected by the dynamic value from setLength.

setLength

Added in 1.3.0-alpha05
@RequiresSchemaVersion(major = 1, minor = 500)
fun setLength(length: DimensionBuilders.DegreesProp): LayoutElementBuilders.DashedArcLine.Builder

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

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

setLinePattern

Added in 1.3.0-alpha05
@RequiresSchemaVersion(major = 1, minor = 500)
fun setLinePattern(linePattern: LayoutElementBuilders.DashedLinePattern): LayoutElementBuilders.DashedArcLine.Builder

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

setThickness

Added in 1.3.0-alpha05
@RequiresSchemaVersion(major = 1, minor = 500)
fun setThickness(thickness: @Dimension(unit = 0) Float): LayoutElementBuilders.DashedArcLine.Builder

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