LayoutElementBuilders.ExtensionLayoutElement.Builder


class LayoutElementBuilders.ExtensionLayoutElement.Builder


Builder for ExtensionLayoutElement.

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 200)
Builder()

Creates an instance of Builder.

Public functions

LayoutElementBuilders.ExtensionLayoutElement

Builds an instance from accumulated values.

LayoutElementBuilders.ExtensionLayoutElement.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setExtensionId(extensionId: String)

Sets the ID of the renderer extension that should be used for rendering this layout element.

LayoutElementBuilders.ExtensionLayoutElement.Builder

Sets the height of this element.

LayoutElementBuilders.ExtensionLayoutElement.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setPayload(payload: ByteArray)

Sets the content of the renderer extension element.

LayoutElementBuilders.ExtensionLayoutElement.Builder

Sets the width of this element.

Public constructors

Builder

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): LayoutElementBuilders.ExtensionLayoutElement

Builds an instance from accumulated values.

setExtensionId

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setExtensionId(extensionId: String): LayoutElementBuilders.ExtensionLayoutElement.Builder

Sets the ID of the renderer extension that should be used for rendering this layout element.

setHeight

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setHeight(height: DimensionBuilders.ExtensionDimension): LayoutElementBuilders.ExtensionLayoutElement.Builder

Sets the height of this element.

setPayload

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setPayload(payload: ByteArray): LayoutElementBuilders.ExtensionLayoutElement.Builder

Sets the content of the renderer extension element. This can be any data; it is expected that the renderer extension knows how to parse this field.

setWidth

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setWidth(width: DimensionBuilders.ExtensionDimension): LayoutElementBuilders.ExtensionLayoutElement.Builder

Sets the width of this element.