LayoutElementBuilders.Layout


@RequiresSchemaVersion(major = 1, minor = 0)
public final class LayoutElementBuilders.Layout


A complete layout.

Summary

Nested types

Builder for Layout

Public methods

static @Nullable LayoutElementBuilders.Layout

Converts from byte array representation.

static @NonNull LayoutElementBuilders.Layout

Creates a Layout object containing the given layout element.

@Nullable LayoutElementBuilders.LayoutElement

Gets the root element in the layout.

@NonNull byte[]

Converts to byte array representation.

@NonNull String

Public methods

fromByteArray

Added in 1.0.0
@ProtoLayoutExperimental
public static @Nullable LayoutElementBuilders.Layout fromByteArray(@NonNull byte[] byteArray)

Converts from byte array representation.

fromLayoutElement

Added in 1.0.0
public static @NonNull LayoutElementBuilders.Layout fromLayoutElement(
    @NonNull LayoutElementBuilders.LayoutElement layoutElement
)

Creates a Layout object containing the given layout element.

getRoot

Added in 1.0.0
public @Nullable LayoutElementBuilders.LayoutElement getRoot()

Gets the root element in the layout.

toByteArray

Added in 1.0.0
@ProtoLayoutExperimental
public @NonNull byte[] toByteArray()

Converts to byte array representation.

toString

public @NonNull String toString()