LayoutElementBuilders.ArcSpacer.Builder


public final class LayoutElementBuilders.ArcSpacer.Builder


Builder for ArcSpacer.

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull LayoutElementBuilders.ArcSpacer

Builds an instance from accumulated values.

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

Sets the length of this spacer.

@NonNull LayoutElementBuilders.ArcSpacer.Builder

Sets the length of this spacer, in degrees.

@NonNull LayoutElementBuilders.ArcSpacer.Builder

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

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

Sets the thickness of this spacer, in DP.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull LayoutElementBuilders.ArcSpacer build()

Builds an instance from accumulated values.

setAngularLength

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

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)
public @NonNull LayoutElementBuilders.ArcSpacer.Builder setLength(@NonNull DimensionBuilders.DegreesProp length)

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)
public @NonNull LayoutElementBuilders.ArcSpacer.Builder setThickness(@NonNull DimensionBuilders.DpProp thickness)

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

Note that this field only supports static values.