public interface

DimensionProto.BoundingBoxRatioOrBuilder

 androidx.wear.protolayout.proto.DimensionProto.BoundingBoxRatioOrBuilder

Subclasses:

DimensionProto.BoundingBoxRatio, DimensionProto.BoundingBoxRatio.Builder

Summary

Methods
public TypesProto.FloatPropgetRatio()

 The ratio proportional to the bounding box width/height.

public booleanhasRatio()

 The ratio proportional to the bounding box width/height.

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;

Returns:

Whether the ratio field is set.

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;

Returns:

The ratio.