LayoutElementBuilders.Layout
@RequiresSchemaVersion(major = 1, minor = 0)
public final class LayoutElementBuilders.Layout
A complete layout.
Summary
Nested types |
|---|
public final class LayoutElementBuilders.Layout.BuilderBuilder for |
Public methods |
|
|---|---|
static @Nullable LayoutElementBuilders.Layout |
@ProtoLayoutExperimentalConverts from byte array representation. |
static @NonNull LayoutElementBuilders.Layout |
fromLayoutElement(Creates a |
@Nullable LayoutElementBuilders.LayoutElement |
getRoot()Gets the root element in the layout. |
@NonNull byte[] |
Converts to byte array representation. |
@NonNull String |
toString() |
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.