LayoutElementBuilders.Layout.Builder

public static final class LayoutElementBuilders.Layout.Builder
extends Object

java.lang.Object
   ↳ androidx.wear.tiles.builders.LayoutElementBuilders.Layout.Builder


Builder for LayoutElementBuilders.Layout

Summary

Public methods

LayoutElementBuilders.Layout build()

Builds an instance from accumulated values.

LayoutElementBuilders.Layout.Builder setRoot(LayoutElementBuilders.LayoutElement root)

Sets the root element in the layout.

LayoutElementBuilders.Layout.Builder setRoot(LayoutElementBuilders.LayoutElement.Builder rootBuilder)

Sets the root element in the layout.

Inherited methods

Public methods

build

public LayoutElementBuilders.Layout build ()

Builds an instance from accumulated values.

Returns
LayoutElementBuilders.Layout

setRoot

public LayoutElementBuilders.Layout.Builder setRoot (LayoutElementBuilders.LayoutElement root)

Sets the root element in the layout.

Parameters
root LayoutElementBuilders.LayoutElement

Returns
LayoutElementBuilders.Layout.Builder

setRoot

public LayoutElementBuilders.Layout.Builder setRoot (LayoutElementBuilders.LayoutElement.Builder rootBuilder)

Sets the root element in the layout.

Parameters
rootBuilder LayoutElementBuilders.LayoutElement.Builder

Returns
LayoutElementBuilders.Layout.Builder