The Developer Preview for Android 11 is now available; test it out and share your feedback.

Emittable

interface Emittable
androidx.compose.Emittable

The Emittable interface tells Compose that the implementing class represents a primitive node/type in the view hierarchy produced as a result of composition. Conceptually similar to a RenderObject in flutter. The result of composition is an updated tree of Emittables, which Compose will maintain/mutate over time as subsequent reconciliations are calculated.

Summary

Public methods

abstract Unit
emitInsertAt(index: Int, instance: Emittable)

abstract Unit
emitMove(from: Int, to: Int, count: Int)

abstract Unit
emitRemoveAt(index: Int, count: Int)

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Public methods

emitInsertAt

abstract fun emitInsertAt(
    index: Int,
    instance: Emittable
): Unit

emitMove

abstract fun emitMove(
    from: Int,
    to: Int,
    count: Int
): Unit

emitRemoveAt

abstract fun emitRemoveAt(
    index: Int,
    count: Int
): Unit