TimelineBuilders.TimeInterval.Builder


class TimelineBuilders.TimeInterval.Builder


Builder for TimeInterval

Summary

Public constructors

Creates an instance of Builder.

Public functions

TimelineBuilders.TimeInterval

Builds an instance from accumulated values.

TimelineBuilders.TimeInterval.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setEndMillis(endMillis: Long)

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

TimelineBuilders.TimeInterval.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setStartMillis(startMillis: Long)

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

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): TimelineBuilders.TimeInterval

Builds an instance from accumulated values.

setEndMillis

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setEndMillis(endMillis: Long): TimelineBuilders.TimeInterval.Builder

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

setStartMillis

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setStartMillis(startMillis: Long): TimelineBuilders.TimeInterval.Builder

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