UpdateInterval

sealed class UpdateInterval(source)

Represents an update interval, which can be either a predefined fixed value or a custom manual value in seconds. This is a type-safe representation for settings that involve time durations.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Fixed(val interval: FixedUpdateIntervals) : UpdateInterval

A predefined, fixed interval.

Link copied to clipboard
data class Manual(val value: Long) : UpdateInterval

A user-defined interval, specified in seconds.

Properties

Link copied to clipboard
val id: String

A unique, stable identifier for this interval, suitable for use in Compose keys.

Link copied to clipboard
abstract val value: Long

The duration of the interval in seconds.