public final class

LayoutElementProto.SpanImage

extends <any>

implements LayoutElementProto.SpanImageOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.SpanImage

Overview

 An image which can be added to a Span.
 
Protobuf type androidx.wear.protolayout.proto.SpanImage

Summary

Fields
public static final intALIGNMENT_FIELD_NUMBER

public static final intHEIGHT_FIELD_NUMBER

public static final intMODIFIERS_FIELD_NUMBER

public static final intRESOURCE_ID_FIELD_NUMBER

public static final intWIDTH_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public LayoutElementProto.SpanVerticalAlignmentPropgetAlignment()

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

public static LayoutElementProto.SpanImagegetDefaultInstance()

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.

public static LayoutElementProto.SpanImage.BuildernewBuilder()

public static LayoutElementProto.SpanImage.BuildernewBuilder(LayoutElementProto.SpanImage prototype)

public static LayoutElementProto.SpanImageparseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.SpanImageparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImageparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImageparseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.SpanImageparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImageparseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.SpanImageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImageparseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.SpanImageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImageparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int RESOURCE_ID_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER

public static final int MODIFIERS_FIELD_NUMBER

public static final int ALIGNMENT_FIELD_NUMBER

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;

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;

public boolean hasWidth()

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

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;

public boolean hasHeight()

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

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;

public boolean hasModifiers()

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

public ModifiersProto.SpanModifiers getModifiers()

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

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;

 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;

public static LayoutElementProto.SpanImage parseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.SpanImage parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImage parseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.SpanImage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImage parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImage parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImage parseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.SpanImage parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImage parseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.SpanImage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanImage.Builder newBuilder()

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static LayoutElementProto.SpanImage getDefaultInstance()

public static <any> parser()