public final class

TimelineBuilders.TimeInterval

extends java.lang.Object

 java.lang.Object

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

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

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public long getStartMillis()

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

public long getEndMillis()

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

Creates a new wrapper instance from the proto.

Returns the internal proto instance.

public java.lang.String toString()