Composition
Kotlin
|Java
interface Composition
androidx.compose.runtime.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.
Summary
Public methods | |
---|---|
abstract Unit |
dispose() Clear the hierarchy that was created from the composition. |
abstract Boolean |
Returns true if any pending invalidations have been scheduled. |
abstract Unit |
setContent(content: () -> Unit) Update the composition with the content described by the content composable |
Public methods
hasInvalidations
abstract fun hasInvalidations(): Boolean
Returns true if any pending invalidations have been scheduled.