DimensionBuilders.ProportionalDimensionProp.Builder

Added in 1.0.0
Deprecated in 1.2.0

class DimensionBuilders.ProportionalDimensionProp.Builder : DimensionBuilders.ImageDimension.Builder


Builder for ProportionalDimensionProp.

Summary

Public constructors

Public functions

DimensionBuilders.ProportionalDimensionProp

Builds an instance with values accumulated in this Builder.

DimensionBuilders.ProportionalDimensionProp.Builder
setAspectRatioHeight(aspectRatioHeight: @IntRange(from = 0) Int)

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

DimensionBuilders.ProportionalDimensionProp.Builder
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
Deprecated in 1.2.0
Builder()

Public functions

build

Added in 1.4.0-alpha01
Deprecated in 1.4.0-alpha01
fun build(): DimensionBuilders.ProportionalDimensionProp

Builds an instance with values accumulated in this Builder.

setAspectRatioHeight

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

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