SYSTEM_CLOCK
Returns a Flow that emits ClockWrapper of Clock.System every time the system clock updates. Initially, a value is always emitted a first time, and it later waits for changes.
Note: this emits ClockWrapper instead of plain Clock.System because the latter is a singleton, and StateFlow always conflates identical values.
Note: currently only works for Android. In the rest of the platforms, the flow returns only the initial value and does not subscribe to clock change events.
Returns a Flow that emits ClockWrapper of Clock.System every time the system clock updates. Initially, a value is always emitted a first time, and it later waits for changes.
Note: this emits ClockWrapper instead of plain Clock.System because the latter is a singleton, and StateFlow always conflates identical values.
Note: currently only works for Android. In the rest of the platforms, the flow returns only the initial value and does not subscribe to clock change events.
Returns a Flow that emits ClockWrapper of Clock.System every time the system clock updates. Initially, a value is always emitted a first time, and it later waits for changes.
Note: this emits ClockWrapper instead of plain Clock.System because the latter is a singleton, and StateFlow always conflates identical values.
Note: currently only works for Android. In the rest of the platforms, the flow returns only the initial value and does not subscribe to clock change events.
Returns a Flow that emits ClockWrapper of Clock.System every time the system clock updates. Initially, a value is always emitted a first time, and it later waits for changes.
Note: this emits ClockWrapper instead of plain Clock.System because the latter is a singleton, and StateFlow always conflates identical values.
Note: currently only works for Android. In the rest of the platforms, the flow returns only the initial value and does not subscribe to clock change events.