FrameDispatcher

class FrameDispatcher(scope: CoroutineScope, onFrame: suspend () -> Unit)

Dispatch frame after call of scheduleFrame.

After the creating there should be no scheduled frame in the frame loop.

Constructors

Link copied to clipboard
constructor(context: CoroutineContext, onFrame: suspend () -> Unit)
constructor(scope: CoroutineScope, onFrame: suspend () -> Unit)

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard

Schedule next frame to render in the frame loop.