DimensionBuilders.ProportionalDimensionProp.Builder


public final class DimensionBuilders.ProportionalDimensionProp.Builder


Builder for ProportionalDimensionProp.

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull DimensionBuilders.ProportionalDimensionProp

Builds an instance from accumulated values.

@NonNull DimensionBuilders.ProportionalDimensionProp.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setAspectRatioHeight(@IntRange(from = 0) int aspectRatioHeight)

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

@NonNull DimensionBuilders.ProportionalDimensionProp.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setAspectRatioWidth(@IntRange(from = 0) int aspectRatioWidth)

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

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 DimensionBuilders.ProportionalDimensionProp build()

Builds an instance from accumulated values.

setAspectRatioHeight

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioHeight(@IntRange(from = 0) int aspectRatioHeight)

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

setAspectRatioWidth

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioWidth(@IntRange(from = 0) int aspectRatioWidth)

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