public final class

TimelineBuilders.TimelineEntry

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.TimelineBuilders.TimelineEntry

Overview

One piece of renderable content along with the time that it is valid for.

Summary

Methods
public static TimelineBuilders.TimelineEntryfromLayoutElement(LayoutElementBuilders.LayoutElement layoutElement)

Returns the TimelineBuilders.TimelineEntry object containing the given layout element.

public static TimelineBuilders.TimelineEntryfromProto(TimelineProto.TimelineEntry proto)

public LayoutElementBuilders.LayoutgetLayout()

Gets the contents of this timeline entry.

public TimelineBuilders.TimeIntervalgetValidity()

Gets the validity period for this timeline entry.

public TimelineProto.TimelineEntrytoProto()

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

Methods

public TimelineBuilders.TimeInterval getValidity()

Gets the validity period for this timeline entry. Intended for testing purposes only.

public LayoutElementBuilders.Layout getLayout()

Gets the contents of this timeline entry. Intended for testing purposes only.

public static TimelineBuilders.TimelineEntry fromLayoutElement(LayoutElementBuilders.LayoutElement layoutElement)

Returns the TimelineBuilders.TimelineEntry object containing the given layout element.