Package kotlinx.coroutines.android

Provides Dispatchers.Main context for Android applications.

Types

HandlerDispatcher

sealed class HandlerDispatcher : 
    MainCoroutineDispatcher,
    Delay

Dispatches execution onto Android Handler.

Extensions for External Classes

android.os.Handler

Functions

awaitFrame

suspend fun awaitFrame(): Long

Awaits the next animation frame and returns frame time in nanoseconds.