LayoutElementBuilders.ArcSpacer.Builder


class LayoutElementBuilders.ArcSpacer.Builder


Builder for ArcSpacer.

Summary

Public constructors

Creates an instance of Builder.

Public functions

LayoutElementBuilders.ArcSpacer

Builds an instance from accumulated values.

LayoutElementBuilders.ArcSpacer.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setAngularLength(angularLength: DimensionBuilders.AngularDimension)

Sets the length of this spacer.

LayoutElementBuilders.ArcSpacer.Builder

Sets the length of this spacer, in degrees.

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

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

LayoutElementBuilders.ArcSpacer.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setThickness(thickness: DimensionBuilders.DpProp)

Sets the thickness of this spacer, in DP.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): LayoutElementBuilders.ArcSpacer

Builds an instance from accumulated values.

setAngularLength

Added in 1.3.0-alpha05
@RequiresSchemaVersion(major = 1, minor = 500)
fun setAngularLength(angularLength: DimensionBuilders.AngularDimension): LayoutElementBuilders.ArcSpacer.Builder

Sets the length of this spacer. If not defined, defaults to 0 degrees. If set, this angular length will be used instead of the value provided in setLength().

Note that this field only supports static values.

setLength

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setLength(length: DimensionBuilders.DegreesProp): LayoutElementBuilders.ArcSpacer.Builder

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

This value is ignored when an angular length is provided by calling setAngularLength().

Note that this field only supports static values.

setThickness

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setThickness(thickness: DimensionBuilders.DpProp): LayoutElementBuilders.ArcSpacer.Builder

Sets the thickness of this spacer, in DP. If not defined, defaults to 0.

Note that this field only supports static values.