Google is committed to advancing racial equity for Black communities. See how.

AndroidUiDispatcher

class AndroidUiDispatcher : CoroutineDispatcher
kotlin.Any
   ↳ kotlin.coroutines.AbstractCoroutineContextElement
   ↳ kotlinx.coroutines.CoroutineDispatcher
   ↳ androidx.compose.AndroidUiDispatcher

A CoroutineDispatcher that will perform dispatch during choreographer's animation frame stage. Suspending will always wait until the next frame.

Summary

Public methods
Unit
dispatch(context: CoroutineContext, block: Runnable)

Properties
Choreographer

CompositionFrameClock

Companion properties
AndroidUiDispatcher

AndroidUiDispatcher

Public methods

dispatch

fun dispatch(
    context: CoroutineContext,
    block: Runnable
): Unit

Properties

choreographer

val choreographer: Choreographer

compositionFrameClock

val compositionFrameClock: CompositionFrameClock

Companion properties

CurrentThread

val CurrentThread: AndroidUiDispatcher

Main

val Main: AndroidUiDispatcher