Package kotlinx.coroutines.android
Provides Dispatchers.Main
context for Android applications.
Types
HandlerDispatcher
Link copied to clipboard
Dispatches execution onto Android Handler.
Functions
asCoroutineDispatcher
Link copied to clipboard
fun Handler.asCoroutineDispatcher(name: String? = null): HandlerDispatcher
Content copied to clipboard
Represents an arbitrary Handler as an implementation of CoroutineDispatcher with an optional name for nicer debugging
awaitFrame
Link copied to clipboard
Awaits the next animation frame and returns frame time in nanoseconds.