Monotonic Frame Clock
Provides a time source for display frames and the ability to perform an action on the next frame. This may be used for matching timing with the refresh rate of a display or otherwise synchronizing work with a desired frame rate.
Types
Key
Link copied to clipboard
Functions
get
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Content copied to clipboard
minusKey
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Content copied to clipboard
plus
Link copied to clipboard
withFrameNanos
Link copied to clipboard
abstract suspend fun <R> withFrameNanos(onFrame: (frameTimeNanos: Long) -> R): R
Content copied to clipboard
Properties
key
Link copied to clipboard
Inheritors
BroadcastFrameClock
Link copied to clipboard
Extensions
withFrameMillis
Link copied to clipboard
inline suspend fun <R> MonotonicFrameClock.withFrameMillis(crossinline onFrame: (frameTimeMillis: Long) -> R): R
Content copied to clipboard