Closed pyricau closed 2 years ago
Current impl:
internal fun onCurrentFrameRendered(callback: (Long) -> Unit) { mainHandler.postAtFrontOfQueueAsync { val frameRenderedUptimeMillis = SystemClock.uptimeMillis() callback(frameRenderedUptimeMillis) } }
This should be stateful and aware of any pending calls so that we only register a single call and a single uptime and dispatch to all callbacks
Current impl:
This should be stateful and aware of any pending calls so that we only register a single call and a single uptime and dispatch to all callbacks