public final class

TimelineBuilders.TimeInterval

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.TimelineBuilders.TimeInterval

Overview

A time interval, typically used to describe the validity period of a TimelineBuilders.TimelineEntry.

Summary

Methods
public static TimelineBuilders.TimeIntervalfromProto(TimelineProto.TimeInterval proto)

public longgetEndMillis()

Gets end point of the time interval, in milliseconds since the Unix epoch.

public longgetStartMillis()

Gets starting point of the time interval, in milliseconds since the Unix epoch.

public TimelineProto.TimeIntervaltoProto()

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

Methods

public long getStartMillis()

Gets starting point of the time interval, in milliseconds since the Unix epoch. Intended for testing purposes only.

public long getEndMillis()

Gets end point of the time interval, in milliseconds since the Unix epoch. Intended for testing purposes only.

public static TimelineBuilders.TimeInterval fromProto(TimelineProto.TimeInterval proto)

public TimelineProto.TimeInterval toProto()