TimelineBuilders.TimeInterval.Builder

public static final class TimelineBuilders.TimeInterval.Builder
extends Object

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


Builder for TimelineBuilders.TimeInterval

Summary

Public methods

TimelineBuilders.TimeInterval build()

Builds an instance from accumulated values.

TimelineBuilders.TimeInterval.Builder setEndMillis(long endMillis)

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

TimelineBuilders.TimeInterval.Builder setStartMillis(long startMillis)

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

Inherited methods

Public methods

build

public TimelineBuilders.TimeInterval build ()

Builds an instance from accumulated values.

Returns
TimelineBuilders.TimeInterval

setEndMillis

public TimelineBuilders.TimeInterval.Builder setEndMillis (long endMillis)

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

Parameters
endMillis long

Returns
TimelineBuilders.TimeInterval.Builder

setStartMillis

public TimelineBuilders.TimeInterval.Builder setStartMillis (long startMillis)

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

Parameters
startMillis long

Returns
TimelineBuilders.TimeInterval.Builder