LayoutElementBuilders.SpanImage

Added in 1.0.0
Deprecated in 1.2.0

class LayoutElementBuilders.SpanImage : LayoutElementBuilders.Span


An image which can be added to a Span.

Summary

Public functions

LayoutElementBuilders.SpanVerticalAlignmentProp?

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

DimensionBuilders.DpProp?

Gets the height of this image.

ModifiersBuilders.SpanModifiers?

Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.

TypeBuilders.StringProp?

Gets the resource_id of the image to render.

DimensionBuilders.DpProp?

Gets the width of this image.

Public functions

getAlignment

Added in 1.0.0
Deprecated in 1.2.0
fun getAlignment(): LayoutElementBuilders.SpanVerticalAlignmentProp?

Gets alignment of this image within the line height of the surrounding Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM. Intended for testing purposes only.

getHeight

Added in 1.0.0
Deprecated in 1.2.0
fun getHeight(): DimensionBuilders.DpProp?

Gets the height of this image. If not defined, the image will not be rendered. Intended for testing purposes only.

getModifiers

Added in 1.0.0
Deprecated in 1.2.0
fun getModifiers(): ModifiersBuilders.SpanModifiers?

Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.

getResourceId

Added in 1.0.0
Deprecated in 1.2.0
fun getResourceId(): TypeBuilders.StringProp?

Gets the resource_id of the image to render. This must exist in the supplied resource bundle. Intended for testing purposes only.

getWidth

Added in 1.0.0
Deprecated in 1.2.0
fun getWidth(): DimensionBuilders.DpProp?

Gets the width of this image. If not defined, the image will not be rendered. Intended for testing purposes only.