Recomposer

class Recomposer(effectCoroutineContext: CoroutineContext) : CompositionReference

The scheduler for performing recomposition and applying updates to one or more Compositions.

Constructors

Recomposer
Link copied to clipboard
common
fun Recomposer(effectCoroutineContext: CoroutineContext)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

awaitIdle
Link copied to clipboard
common
suspend fun awaitIdle()
Suspends until the currently pending recomposition frame is complete.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
hasInvalidations
Link copied to clipboard
common
fun hasInvalidations(): Boolean
Returns true if any pending invalidations have been scheduled.
join
Link copied to clipboard
common
suspend fun join()
Await the completion of a shutDown operation.
recomposeAndApplyChanges
Link copied to clipboard
common
suspend fun recomposeAndApplyChanges(frameCount: Long)
Await the invalidation of any associated Composers, recompose them, and apply their changes to their associated Compositions if recomposition is successful.
runRecomposeAndApplyChanges
Link copied to clipboard
common
suspend fun runRecomposeAndApplyChanges(): Nothing
Await the invalidation of any associated Composers, recompose them, and apply their changes to their associated Compositions if recomposition is successful.
shutDown
Link copied to clipboard
common
fun shutDown()
Permanently shut down this Recomposer for future use.
toString
Link copied to clipboard
common
open fun toString(): String