DimensionBuilders.ProportionalDimensionProp.Builder


class DimensionBuilders.ProportionalDimensionProp.Builder


Builder for ProportionalDimensionProp.

Summary

Public constructors

Creates an instance of Builder.

Public functions

DimensionBuilders.ProportionalDimensionProp

Builds an instance from accumulated values.

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

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

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

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

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): DimensionBuilders.ProportionalDimensionProp

Builds an instance from accumulated values.

setAspectRatioHeight

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setAspectRatioHeight(aspectRatioHeight: @IntRange(from = 0) Int): DimensionBuilders.ProportionalDimensionProp.Builder

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)
fun setAspectRatioWidth(aspectRatioWidth: @IntRange(from = 0) Int): DimensionBuilders.ProportionalDimensionProp.Builder

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