Composition

interface Composition

A composition object is usually constructed for you, and returned from an API that is used to initially compose a UI. For instance, setContent returns a Composition.

The dispose method should be used when you would like to dispose of the UI and the Composition.

Functions

dispose
Link copied to clipboard
common
abstract fun dispose()
Clear the hierarchy that was created from the composition.
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
abstract fun hasInvalidations(): Boolean
Returns true if any pending invalidations have been scheduled.
setContent
Link copied to clipboard
common
abstract fun setContent(content: () -> Unit)
Update the composition with the content described by the content composable
toString
Link copied to clipboard
common
open fun toString(): String