LayoutElementBuilders.SpanImage.Builder

Added in 1.0.0
Deprecated in 1.2.0

class LayoutElementBuilders.SpanImage.Builder : LayoutElementBuilders.Span.Builder


Builder for SpanImage.

Summary

Public constructors

Public functions

LayoutElementBuilders.SpanImage

Builds an instance with values accumulated in this Builder.

LayoutElementBuilders.SpanImage.Builder
setAlignment(alignment: Int)

Sets alignment of this image within the line height of the surrounding .

LayoutElementBuilders.SpanImage.Builder

Sets alignment of this image within the line height of the surrounding .

LayoutElementBuilders.SpanImage.Builder

Sets the height of this image.

LayoutElementBuilders.SpanImage.Builder

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

LayoutElementBuilders.SpanImage.Builder
setResourceId(resourceId: String)

Sets the resource_id of the image to render.

LayoutElementBuilders.SpanImage.Builder

Sets the resource_id of the image to render.

LayoutElementBuilders.SpanImage.Builder

Sets the width of this image.

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
Builder()

Public functions

build

Added in 1.4.0-alpha01
Deprecated in 1.4.0-alpha01
fun build(): LayoutElementBuilders.SpanImage

Builds an instance with values accumulated in this Builder.

setAlignment

Added in 1.0.0
Deprecated in 1.2.0
fun setAlignment(alignment: Int): LayoutElementBuilders.SpanImage.Builder

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

setAlignment

Added in 1.0.0
Deprecated in 1.2.0
fun setAlignment(
    alignment: LayoutElementBuilders.SpanVerticalAlignmentProp
): LayoutElementBuilders.SpanImage.Builder

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

setHeight

Added in 1.0.0
Deprecated in 1.2.0
fun setHeight(height: DimensionBuilders.DpProp): LayoutElementBuilders.SpanImage.Builder

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

setResourceId

Added in 1.0.0
Deprecated in 1.2.0
fun setResourceId(resourceId: String): LayoutElementBuilders.SpanImage.Builder

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

setResourceId

Added in 1.0.0
Deprecated in 1.2.0
fun setResourceId(resourceId: TypeBuilders.StringProp): LayoutElementBuilders.SpanImage.Builder

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

setWidth

Added in 1.0.0
Deprecated in 1.2.0
fun setWidth(width: DimensionBuilders.DpProp): LayoutElementBuilders.SpanImage.Builder

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