public interface

DimensionProto.PivotDimensionOrBuilder

 androidx.wear.protolayout.proto.DimensionProto.PivotDimensionOrBuilder

Subclasses:

DimensionProto.PivotDimension, DimensionProto.PivotDimension.Builder

Summary

Methods
public DimensionProto.PivotDimension.InnerCasegetInnerCase()

public DimensionProto.BoundingBoxRatiogetLocationRatio()

 Location proportion to bounding box, with the bounding box top / start as
 0 and bottom / end as 1.

public DimensionProto.DpPropgetOffsetDp()

 Location in dp, with the default pivot (view center) as 0

public booleanhasLocationRatio()

 Location proportion to bounding box, with the bounding box top / start as
 0 and bottom / end as 1.

public booleanhasOffsetDp()

 Location in dp, with the default pivot (view center) as 0

Methods

public boolean hasOffsetDp()

 Location in dp, with the default pivot (view center) as 0
 
.androidx.wear.protolayout.proto.DpProp offset_dp = 1;

Returns:

Whether the offsetDp field is set.

public DimensionProto.DpProp getOffsetDp()

 Location in dp, with the default pivot (view center) as 0
 
.androidx.wear.protolayout.proto.DpProp offset_dp = 1;

Returns:

The offsetDp.

public boolean hasLocationRatio()

 Location proportion to bounding box, with the bounding box top / start as
 0 and bottom / end as 1. Values outside [0, 1] are also valid.
 
.androidx.wear.protolayout.proto.BoundingBoxRatio location_ratio = 2;

Returns:

Whether the locationRatio field is set.

public DimensionProto.BoundingBoxRatio getLocationRatio()

 Location proportion to bounding box, with the bounding box top / start as
 0 and bottom / end as 1. Values outside [0, 1] are also valid.
 
.androidx.wear.protolayout.proto.BoundingBoxRatio location_ratio = 2;

Returns:

The locationRatio.