withFrame

abstract suspend fun withFrame(onFrame: (Long) -> Unit)

Parameters

onFrame

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