AndroidUiDispatcher

class AndroidUiDispatcher : CoroutineDispatcher

A CoroutineDispatcher that will perform dispatch during a handler callback or choreographer's animation frame stage, whichever comes first. Use Main to obtain a dispatcher for the process's main thread (i.e. the activity thread) or CurrentThread to obtain a dispatcher for the current thread.

Types

Companion
Link copied to clipboard
object Companion

Functions

dispatch
Link copied to clipboard
open override fun dispatch(context: CoroutineContext, block: Runnable)
dispatchYield
Link copied to clipboard
open fun dispatchYield(context: CoroutineContext, block: Runnable)
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
fold
Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
get
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
hashCode
Link copied to clipboard
open fun hashCode(): Int
interceptContinuation
Link copied to clipboard
override fun <T> interceptContinuation(continuation: Continuation<T>): Continuation<T>
isDispatchNeeded
Link copied to clipboard
open fun isDispatchNeeded(context: CoroutineContext): Boolean
minusKey
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
plus
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext
operator fun plus(other: CoroutineDispatcher): CoroutineDispatcher
releaseInterceptedContinuation
Link copied to clipboard
open override fun releaseInterceptedContinuation(continuation: Continuation<*>)
toString
Link copied to clipboard
open override fun toString(): String

Properties

choreographer
Link copied to clipboard
val choreographer: Choreographer
frameClock
Link copied to clipboard
val frameClock: <ERROR CLASS>
A MonotonicFrameClock associated with this AndroidUiDispatcher's choreographer that may be used to await Choreographer frame dispatch.
key
Link copied to clipboard
open override val key: CoroutineContext.Key<*>