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

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.

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.

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.