DimensionBuilders.ProportionalDimensionProp.Builder

public static final class DimensionBuilders.ProportionalDimensionProp.Builder
extends Object implements DimensionBuilders.ImageDimension.Builder

java.lang.Object
   ↳ androidx.wear.tiles.builders.DimensionBuilders.ProportionalDimensionProp.Builder


Builder for DimensionBuilders.ProportionalDimensionProp.

Summary

Public methods

DimensionBuilders.ProportionalDimensionProp build()

Builds an instance with values accumulated in this Builder.

DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioHeight(int aspectRatioHeight)

Sets the height to be used when calculating the aspect ratio ratio to preserve.

DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioWidth(int aspectRatioWidth)

Sets the width to be used when calculating the aspect ratio to preserve.

Inherited methods

Public methods

build

public DimensionBuilders.ProportionalDimensionProp build ()

Builds an instance with values accumulated in this Builder.

Returns
DimensionBuilders.ProportionalDimensionProp

setAspectRatioHeight

public DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioHeight (int aspectRatioHeight)

Sets the height to be used when calculating the aspect ratio ratio to preserve.

Parameters
aspectRatioHeight int

Returns
DimensionBuilders.ProportionalDimensionProp.Builder

setAspectRatioWidth

public DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioWidth (int aspectRatioWidth)

Sets the width to be used when calculating the aspect ratio to preserve.

Parameters
aspectRatioWidth int

Returns
DimensionBuilders.ProportionalDimensionProp.Builder