public final class

TimelineBuilders.TimelineEntry

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.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)

Creates a new wrapper instance from the 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()

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public TimelineBuilders.TimeInterval getValidity()

Gets the validity period for this timeline entry.

public LayoutElementBuilders.Layout getLayout()

Gets the contents of this timeline entry.

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

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

Creates a new wrapper instance from the proto.

Returns the internal proto instance.

public java.lang.String toString()