public interface

DimensionProto.DpPropOrBuilder

 androidx.wear.protolayout.proto.DimensionProto.DpPropOrBuilder

Subclasses:

DimensionProto.DpProp, DimensionProto.DpProp.Builder

Summary

Methods
public DimensionProto.DpProp.AlignCasegetAlignCase()

public DynamicProto.DynamicFloatgetDynamicValue()

 The dynamic value, in dp.

public AlignmentProto.HorizontalAlignmentgetHorizontalAlignmentForLayout()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout.

public intgetHorizontalAlignmentForLayoutValue()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout.

public DimensionProto.DpProp.OptionalValueCasegetOptionalValueCase()

public DimensionProto.DpProp.OptionalValueForLayoutCasegetOptionalValueForLayoutCase()

public floatgetValue()

 The static value, in dp.

public floatgetValueForLayout()

 The fixed value to reserve the space when used on a layout-changing data
 bind.

public AlignmentProto.VerticalAlignmentgetVerticalAlignmentForLayout()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout.

public intgetVerticalAlignmentForLayoutValue()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout.

public booleanhasDynamicValue()

 The dynamic value, in dp.

public booleanhasHorizontalAlignmentForLayout()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout.

public booleanhasValue()

 The static value, in dp.

public booleanhasValueForLayout()

 The fixed value to reserve the space when used on a layout-changing data
 bind.

public booleanhasVerticalAlignmentForLayout()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout.

Methods

public boolean hasValue()

 The static value, in dp. If a dynamic value is also set and the renderer
 supports dynamic values for the corresponding field, this static value
 will be ignored. If the static value is not specified, zero will be used
 instead.
 
float value = 1;

Returns:

Whether the value field is set.

public float getValue()

 The static value, in dp. If a dynamic value is also set and the renderer
 supports dynamic values for the corresponding field, this static value
 will be ignored. If the static value is not specified, zero will be used
 instead.
 
float value = 1;

Returns:

The value.

public boolean hasDynamicValue()

 The dynamic value, in dp. Note that when setting this value, the static
 value is still required to be set to support older renderers that only read
 the static value. If {@code dynamicValue} has an invalid result, the
 provided static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat dynamic_value = 2;

Returns:

Whether the dynamicValue field is set.

public DynamicProto.DynamicFloat getDynamicValue()

 The dynamic value, in dp. Note that when setting this value, the static
 value is still required to be set to support older renderers that only read
 the static value. If {@code dynamicValue} has an invalid result, the
 provided static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicFloat dynamic_value = 2;

Returns:

The dynamicValue.

public boolean hasValueForLayout()

 The fixed value to reserve the space when used on a layout-changing data
 bind.
 
float value_for_layout = 3;

Returns:

Whether the valueForLayout field is set.

public float getValueForLayout()

 The fixed value to reserve the space when used on a layout-changing data
 bind.
 
float value_for_layout = 3;

Returns:

The valueForLayout.

public boolean hasVerticalAlignmentForLayout()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for vertical
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.VerticalAlignment vertical_alignment_for_layout = 4;

Returns:

Whether the verticalAlignmentForLayout field is set.

public int getVerticalAlignmentForLayoutValue()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for vertical
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.VerticalAlignment vertical_alignment_for_layout = 4;

Returns:

The enum numeric value on the wire for verticalAlignmentForLayout.

public AlignmentProto.VerticalAlignment getVerticalAlignmentForLayout()

 Vertical alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for vertical
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.VerticalAlignment vertical_alignment_for_layout = 4;

Returns:

The verticalAlignmentForLayout.

public boolean hasHorizontalAlignmentForLayout()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for horizontal
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.HorizontalAlignment horizontal_alignment_for_layout = 5;

Returns:

Whether the horizontalAlignmentForLayout field is set.

public int getHorizontalAlignmentForLayoutValue()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for horizontal
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.HorizontalAlignment horizontal_alignment_for_layout = 5;

Returns:

The enum numeric value on the wire for horizontalAlignmentForLayout.

public AlignmentProto.HorizontalAlignment getHorizontalAlignmentForLayout()

 Horizontal alignment of the actual content within the space reserved by
 value_for_layout. Only valid when this DpProp is used for horizontal
 sizing. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.HorizontalAlignment horizontal_alignment_for_layout = 5;

Returns:

The horizontalAlignmentForLayout.

public DimensionProto.DpProp.OptionalValueCase getOptionalValueCase()

public DimensionProto.DpProp.OptionalValueForLayoutCase getOptionalValueForLayoutCase()

public DimensionProto.DpProp.AlignCase getAlignCase()