currentComposer

Property
Common
public val currentComposer: Composer

A Compose internal function. DO NOT call directly.

Returns the Composer instance currently being used to perform composition. The returned Composer is specific to the location where this property is read. There are no guarantees that the same Composer object will be returned elsewhere in the composition or that the Composer instance will be the same across recompositions.

This property is exposed for use by the runtime, compiler, and tooling. It is not recommended for public consumption. Mutating the state of the composer outside of calls generated by the Compose compiler is not supported.