Google is committed to advancing racial equity for Black communities. See how.

TimeReference

class TimeReference
kotlin.Any
   ↳ androidx.wear.complications.data.TimeReference

Expresses the reference point for a time difference.

It defines one of endDateTimeMillis or startDateTimeMillis to express the corresponding time differences relative before or after the givene point in time.

Summary

Public methods
Boolean

Boolean

Companion functions
TimeReference
ending(dateTimeMillis: Long)

Creates a TimeReference for the time difference ending at the given dateTimeMillis.

TimeReference
starting(dateTimeMillis: Long)

Creates a TimeReference for the time difference starting at the given dateTimeMillis.

Properties
Long

Long

Public methods

hasEndDateTimeMillis

fun hasEndDateTimeMillis(): Boolean

hasStartDateTimeMillis

fun hasStartDateTimeMillis(): Boolean

Properties

endDateTimeMillis

val endDateTimeMillis: Long

startDateTimeMillis

val startDateTimeMillis: Long

Companion functions

ending

@JvmStatic fun ending(dateTimeMillis: Long): TimeReference

Creates a TimeReference for the time difference ending at the given dateTimeMillis.

starting

@JvmStatic fun starting(dateTimeMillis: Long): TimeReference

Creates a TimeReference for the time difference starting at the given dateTimeMillis.