public final class

LayoutElementBuilders.Layout

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.Layout

Overview

A complete layout.

Summary

Methods
public static LayoutElementBuilders.LayoutfromByteArray(byte[] byteArray[])

Converts from byte array representation.

public static LayoutElementBuilders.LayoutfromLayoutElement(LayoutElementBuilders.LayoutElement layoutElement)

Creates a LayoutElementBuilders.Layout object containing the given layout element.

public static LayoutElementBuilders.LayoutfromProto(LayoutElementProto.Layout proto)

Creates a new wrapper instance from the proto.

public LayoutElementBuilders.LayoutElementgetRoot()

Gets the root element in the layout.

public byte[]toByteArray()

Converts to byte array representation.

public LayoutElementProto.LayouttoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods

Gets the root element in the layout.

public static LayoutElementBuilders.Layout fromLayoutElement(LayoutElementBuilders.LayoutElement layoutElement)

Creates a LayoutElementBuilders.Layout object containing the given layout element.

public byte[] toByteArray()

Converts to byte array representation.

public static LayoutElementBuilders.Layout fromByteArray(byte[] byteArray[])

Converts from byte array representation.

Creates a new wrapper instance from the proto.

public LayoutElementProto.Layout toProto()

Returns the internal proto instance.

public java.lang.String toString()