ContentLauncherTrait.DimensionStruct

class ContentLauncherTrait.DimensionStruct


A set of dimensions for a background image.

Summary

Public constructors

DimensionStruct(
    width: Double,
    height: Double,
    metric: ContentLauncherTrait.MetricTypeEnum
)

Creates the DimensionStruct class.

Public properties

Double

The height, using the metric specified by the metric field.

ContentLauncherTrait.MetricTypeEnum

The unit of measurement used for defining the dimensions.

Double

The width, using the metric specified by the metric field.

Public constructors

DimensionStruct

DimensionStruct(
    width: Double = 0.0,
    height: Double = 0.0,
    metric: ContentLauncherTrait.MetricTypeEnum = MetricTypeEnum.Pixels
)

Creates the DimensionStruct class.

Public properties

height

val heightDouble

The height, using the metric specified by the metric field.

metric

val metricContentLauncherTrait.MetricTypeEnum

The unit of measurement used for defining the dimensions. If the metric is MetricTypeEnum.Percentage, the dimensions are expressed in terms of a percentage of the overall display dimensions. For example, a percentage width measurement of 50.0 against a display width of 1920 pixels would mean that the width in pixels is 960, which is 50.0% of 1920.

width

val widthDouble

The width, using the metric specified by the metric field.