public final class

LayoutElementBuilders.SpanImage

extends java.lang.Object

implements LayoutElementBuilders.Span

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.SpanImage

Overview

An image which can be added to a LayoutElementBuilders.Span.

Summary

Methods
public static LayoutElementBuilders.SpanImagefromProto(LayoutElementProto.SpanImage proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public LayoutElementBuilders.SpanVerticalAlignmentPropgetAlignment()

Gets alignment of this image within the line height of the surrounding LayoutElementBuilders.Spannable.

public FingerprintgetFingerprint()

public DimensionBuilders.DpPropgetHeight()

Gets the height of this image.

public ModifiersBuilders.SpanModifiersgetModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public TypeBuilders.StringPropgetResourceId()

Gets the resource_id of the image to render.

public DimensionBuilders.DpPropgetWidth()

Gets the width of this image.

public LayoutElementProto.SpantoSpanProto()

public java.lang.StringtoString()

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

Methods

public TypeBuilders.StringProp getResourceId()

Gets the resource_id of the image to render. This must exist in the supplied resource bundle.

public DimensionBuilders.DpProp getWidth()

Gets the width of this image. If not defined, the image will not be rendered.

public DimensionBuilders.DpProp getHeight()

Gets the height of this image. If not defined, the image will not be rendered.

public ModifiersBuilders.SpanModifiers getModifiers()

Gets ModifiersBuilders.Modifiers for this element.

Gets alignment of this image within the line height of the surrounding LayoutElementBuilders.Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM.

public Fingerprint getFingerprint()

Creates a new wrapper instance from the proto.

public LayoutElementProto.Span toSpanProto()

public java.lang.String toString()