public final class

DimensionProto.BoundingBoxRatio.Builder

extends <any>

implements DimensionProto.BoundingBoxRatioOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.DimensionProto.BoundingBoxRatio.Builder

Overview

 Provide a position representation proportional to the bounding box width/height.
 
Protobuf type androidx.wear.protolayout.proto.BoundingBoxRatio

Summary

Methods
public DimensionProto.BoundingBoxRatio.BuilderclearRatio()

 The ratio proportional to the bounding box width/height.

public TypesProto.FloatPropgetRatio()

 The ratio proportional to the bounding box width/height.

public booleanhasRatio()

 The ratio proportional to the bounding box width/height.

public DimensionProto.BoundingBoxRatio.BuildermergeRatio(TypesProto.FloatProp value)

 The ratio proportional to the bounding box width/height.

public DimensionProto.BoundingBoxRatio.BuildersetRatio(TypesProto.FloatProp.Builder builderForValue)

 The ratio proportional to the bounding box width/height.

public DimensionProto.BoundingBoxRatio.BuildersetRatio(TypesProto.FloatProp value)

 The ratio proportional to the bounding box width/height.

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

Methods

public boolean hasRatio()

 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.
 
.androidx.wear.protolayout.proto.FloatProp ratio = 1;

public TypesProto.FloatProp getRatio()

 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.
 
.androidx.wear.protolayout.proto.FloatProp ratio = 1;

 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.
 
.androidx.wear.protolayout.proto.FloatProp ratio = 1;

 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.
 
.androidx.wear.protolayout.proto.FloatProp ratio = 1;

 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.
 
.androidx.wear.protolayout.proto.FloatProp ratio = 1;

 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.
 
.androidx.wear.protolayout.proto.FloatProp ratio = 1;