LayoutElementBuilders.ExtensionLayoutElement.Builder


public final class LayoutElementBuilders.ExtensionLayoutElement.Builder


Builder for ExtensionLayoutElement.

Summary

Public constructors

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

Creates an instance of Builder.

Public methods

@NonNull LayoutElementBuilders.ExtensionLayoutElement

Builds an instance from accumulated values.

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

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

@NonNull LayoutElementBuilders.ExtensionLayoutElement.Builder

Sets the height of this element.

@NonNull LayoutElementBuilders.ExtensionLayoutElement.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setPayload(@NonNull byte[] payload)

Sets the content of the renderer extension element.

@NonNull LayoutElementBuilders.ExtensionLayoutElement.Builder

Sets the width of this element.

Public constructors

Builder

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

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull LayoutElementBuilders.ExtensionLayoutElement build()

Builds an instance from accumulated values.

setExtensionId

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

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)
public @NonNull LayoutElementBuilders.ExtensionLayoutElement.Builder setHeight(@NonNull DimensionBuilders.ExtensionDimension height)

Sets the height of this element.

setPayload

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull LayoutElementBuilders.ExtensionLayoutElement.Builder setPayload(@NonNull byte[] payload)

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)
public @NonNull LayoutElementBuilders.ExtensionLayoutElement.Builder setWidth(@NonNull DimensionBuilders.ExtensionDimension width)

Sets the width of this element.