TimelineBuilders.TimelineEntry.Builder

public static final class TimelineBuilders.TimelineEntry.Builder
extends Object

java.lang.Object
   ↳ androidx.wear.tiles.builders.TimelineBuilders.TimelineEntry.Builder


Builder for TimelineBuilders.TimelineEntry

Summary

Public methods

TimelineBuilders.TimelineEntry build()

Builds an instance from accumulated values.

TimelineBuilders.TimelineEntry.Builder setLayout(LayoutElementBuilders.Layout.Builder layoutBuilder)

Sets the contents of this timeline entry.

TimelineBuilders.TimelineEntry.Builder setLayout(LayoutElementBuilders.Layout layout)

Sets the contents of this timeline entry.

TimelineBuilders.TimelineEntry.Builder setValidity(TimelineBuilders.TimeInterval validity)

Sets the validity period for this timeline entry.

TimelineBuilders.TimelineEntry.Builder setValidity(TimelineBuilders.TimeInterval.Builder validityBuilder)

Sets the validity period for this timeline entry.

Inherited methods

Public methods

build

public TimelineBuilders.TimelineEntry build ()

Builds an instance from accumulated values.

Returns
TimelineBuilders.TimelineEntry

setLayout

public TimelineBuilders.TimelineEntry.Builder setLayout (LayoutElementBuilders.Layout.Builder layoutBuilder)

Sets the contents of this timeline entry.

Parameters
layoutBuilder LayoutElementBuilders.Layout.Builder

Returns
TimelineBuilders.TimelineEntry.Builder

setLayout

public TimelineBuilders.TimelineEntry.Builder setLayout (LayoutElementBuilders.Layout layout)

Sets the contents of this timeline entry.

Parameters
layout LayoutElementBuilders.Layout

Returns
TimelineBuilders.TimelineEntry.Builder

setValidity

public TimelineBuilders.TimelineEntry.Builder setValidity (TimelineBuilders.TimeInterval validity)

Sets the validity period for this timeline entry.

Parameters
validity TimelineBuilders.TimeInterval

Returns
TimelineBuilders.TimelineEntry.Builder

setValidity

public TimelineBuilders.TimelineEntry.Builder setValidity (TimelineBuilders.TimeInterval.Builder validityBuilder)

Sets the validity period for this timeline entry.

Parameters
validityBuilder TimelineBuilders.TimeInterval.Builder

Returns
TimelineBuilders.TimelineEntry.Builder