public final class

DimensionBuilders.BoundingBoxRatio.Builder

extends java.lang.Object

implements DimensionBuilders.PivotDimension.Builder

 java.lang.Object

↳androidx.wear.protolayout.DimensionBuilders.BoundingBoxRatio.Builder

Overview

Builder for DimensionBuilders.BoundingBoxRatio.

Summary

Constructors
publicBuilder(TypeBuilders.FloatProp ratio)

Creates an instance of DimensionBuilders.DpProp.Builder.

Methods
public DimensionBuilders.BoundingBoxRatiobuild()

Builds an instance from accumulated values.

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

Constructors

public Builder(TypeBuilders.FloatProp ratio)

Creates an instance of DimensionBuilders.DpProp.Builder.

Parameters:

ratio: the ratio proportional to the bounding box width/height. value 0 represents the location at the top / left of the bounding box and value 1 represents the location at the bottom / end of the bounding box. Its default value 0.5 represents the middle of the bounding box. Values outside [0, 1] are also valid. Dynamic value is supported.

Methods

Builds an instance from accumulated values.