withFrameNanosChoreographer

suspend fun <R> withFrameNanosChoreographer(onFrame: (Long) -> R): R

An API compatible version of withFrameNanos from Compose that uses Choreographer.

Return

The result of onFrame.

Parameters

onFrame

A callback that is invoked with the frame time in nanoseconds.