Rodri Represa
04/13/2021, 3:20 PMAdam Powell
04/13/2021, 3:28 PMMonotonicFrameClock that wraps the current one, install it using withContext, and then call the suspending animation functions in that block. e.g.
val myPausingClock = MyPausingClock(coroutineContext[MonotonicFrameClock]!!, lifecycleOwner)
withContext(myPausingClock) {
animateThings()
}Adam Powell
04/13/2021, 3:29 PMSTARTED or higher from the timestamps passed to MonotonicFrameClock.withFrameNanos callers, otherwise just passing it through to the wrapped clockRodri Represa
04/13/2021, 3:48 PM