LayoutElementBuilders.ArcSpacer.Builder

public static final class LayoutElementBuilders.ArcSpacer.Builder
extends Object implements LayoutElementBuilders.ArcLayoutElement.Builder

java.lang.Object
   ↳ androidx.wear.tiles.builders.LayoutElementBuilders.ArcSpacer.Builder


Builder for LayoutElementBuilders.ArcSpacer.

Summary

Public methods

LayoutElementBuilders.ArcSpacer build()

Builds an instance with values accumulated in this Builder.

LayoutElementBuilders.ArcSpacer.Builder setLength(DimensionBuilders.DegreesProp.Builder lengthBuilder)

Sets the length of this spacer, in degrees.

LayoutElementBuilders.ArcSpacer.Builder setLength(DimensionBuilders.DegreesProp length)

Sets the length of this spacer, in degrees.

LayoutElementBuilders.ArcSpacer.Builder setModifiers(ModifiersBuilders.ArcModifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.ArcSpacer.Builder setModifiers(ModifiersBuilders.ArcModifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.ArcSpacer.Builder setThickness(DimensionBuilders.DpProp thickness)

Sets the thickness of this spacer, in DP.

LayoutElementBuilders.ArcSpacer.Builder setThickness(DimensionBuilders.DpProp.Builder thicknessBuilder)

Sets the thickness of this spacer, in DP.

Inherited methods

Public methods

build

public LayoutElementBuilders.ArcSpacer build ()

Builds an instance with values accumulated in this Builder.

Returns
LayoutElementBuilders.ArcSpacer

setLength

public LayoutElementBuilders.ArcSpacer.Builder setLength (DimensionBuilders.DegreesProp.Builder lengthBuilder)

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

Parameters
lengthBuilder DimensionBuilders.DegreesProp.Builder

Returns
LayoutElementBuilders.ArcSpacer.Builder

setLength

public LayoutElementBuilders.ArcSpacer.Builder setLength (DimensionBuilders.DegreesProp length)

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

Parameters
length DimensionBuilders.DegreesProp

Returns
LayoutElementBuilders.ArcSpacer.Builder

setModifiers

public LayoutElementBuilders.ArcSpacer.Builder setModifiers (ModifiersBuilders.ArcModifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

Parameters
modifiers ModifiersBuilders.ArcModifiers

Returns
LayoutElementBuilders.ArcSpacer.Builder

setModifiers

public LayoutElementBuilders.ArcSpacer.Builder setModifiers (ModifiersBuilders.ArcModifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

Parameters
modifiersBuilder ModifiersBuilders.ArcModifiers.Builder

Returns
LayoutElementBuilders.ArcSpacer.Builder

setThickness

public LayoutElementBuilders.ArcSpacer.Builder setThickness (DimensionBuilders.DpProp thickness)

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

Parameters
thickness DimensionBuilders.DpProp

Returns
LayoutElementBuilders.ArcSpacer.Builder

setThickness

public LayoutElementBuilders.ArcSpacer.Builder setThickness (DimensionBuilders.DpProp.Builder thicknessBuilder)

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

Parameters
thicknessBuilder DimensionBuilders.DpProp.Builder

Returns
LayoutElementBuilders.ArcSpacer.Builder