public interface

LayoutElementProto.SpanImageOrBuilder

 androidx.wear.protolayout.proto.LayoutElementProto.SpanImageOrBuilder

Subclasses:

LayoutElementProto.SpanImage, LayoutElementProto.SpanImage.Builder

Summary

Methods
public LayoutElementProto.SpanVerticalAlignmentPropgetAlignment()

 Alignment of this image within the line height of the surrounding
 Spannable.

public DimensionProto.DpPropgetHeight()

 The height of this image.

public ModifiersProto.SpanModifiersgetModifiers()

 Modifiers for this element.

public TypesProto.StringPropgetResourceId()

 The resource_id of the image to render.

public DimensionProto.DpPropgetWidth()

 The width of this image.

public booleanhasAlignment()

 Alignment of this image within the line height of the surrounding
 Spannable.

public booleanhasHeight()

 The height of this image.

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasResourceId()

 The resource_id of the image to render.

public booleanhasWidth()

 The width of this image.

Methods

public boolean hasResourceId()

 The resource_id of the image to render. This must exist in the supplied
 resource bundle.
 
.androidx.wear.protolayout.proto.StringProp resource_id = 1;

Returns:

Whether the resourceId field is set.

public TypesProto.StringProp getResourceId()

 The resource_id of the image to render. This must exist in the supplied
 resource bundle.
 
.androidx.wear.protolayout.proto.StringProp resource_id = 1;

Returns:

The resourceId.

public boolean hasWidth()

 The width of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.DpProp width = 2;

Returns:

Whether the width field is set.

public DimensionProto.DpProp getWidth()

 The width of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.DpProp width = 2;

Returns:

The width.

public boolean hasHeight()

 The height of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.DpProp height = 3;

Returns:

Whether the height field is set.

public DimensionProto.DpProp getHeight()

 The height of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.DpProp height = 3;

Returns:

The height.

public boolean hasModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.SpanModifiers modifiers = 4;

Returns:

Whether the modifiers field is set.

public ModifiersProto.SpanModifiers getModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.SpanModifiers modifiers = 4;

Returns:

The modifiers.

public boolean hasAlignment()

 Alignment of this image within the line height of the surrounding
 Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM.
 
.androidx.wear.protolayout.proto.SpanVerticalAlignmentProp alignment = 5;

Returns:

Whether the alignment field is set.

 Alignment of this image within the line height of the surrounding
 Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM.
 
.androidx.wear.protolayout.proto.SpanVerticalAlignmentProp alignment = 5;

Returns:

The alignment.