public final class

DimensionBuilders.ProportionalDimensionProp.Builder

extends java.lang.Object

implements DimensionBuilders.ImageDimension.Builder

 java.lang.Object

↳androidx.wear.protolayout.DimensionBuilders.ProportionalDimensionProp.Builder

Overview

Builder for DimensionBuilders.ProportionalDimensionProp.

Summary

Constructors
publicBuilder()

Creates an instance of DimensionBuilders.DpProp.Builder.

Methods
public DimensionBuilders.ProportionalDimensionPropbuild()

Builds an instance from accumulated values.

public DimensionBuilders.ProportionalDimensionProp.BuildersetAspectRatioHeight(int aspectRatioHeight)

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

public DimensionBuilders.ProportionalDimensionProp.BuildersetAspectRatioWidth(int aspectRatioWidth)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates an instance of DimensionBuilders.DpProp.Builder.

Methods

public DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioWidth(int aspectRatioWidth)

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

public DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioHeight(int aspectRatioHeight)

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

Builds an instance from accumulated values.