public final class

DimensionBuilders.BoundingBoxRatio

extends java.lang.Object

implements DimensionBuilders.PivotDimension

 java.lang.Object

↳androidx.wear.protolayout.DimensionBuilders.BoundingBoxRatio

Overview

Provide a position representation proportional to the bounding box width/height.

Summary

Methods
public static DimensionBuilders.BoundingBoxRatiofromProto(DimensionProto.BoundingBoxRatio proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public FingerprintgetFingerprint()

public TypeBuilders.FloatPropgetRatio()

Gets the ratio proportional to the bounding box width/height.

public DimensionProto.PivotDimensiontoPivotDimensionProto()

public java.lang.StringtoString()

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

Methods

public TypeBuilders.FloatProp getRatio()

Gets 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.

public Fingerprint getFingerprint()

Creates a new wrapper instance from the proto.

public DimensionProto.PivotDimension toPivotDimensionProto()

public java.lang.String toString()