RedwoodComposition

fun <W : Any> RedwoodComposition(scope: CoroutineScope, view: RedwoodView<W>, widgetSystem: WidgetSystem<W>, onChanges: () -> Unit = {}): RedwoodComposition
fun <W : Any> RedwoodComposition(scope: CoroutineScope, container: Widget.Children<W>, onBackPressedDispatcher: OnBackPressedDispatcher, saveableStateRegistry: SaveableStateRegistry?, uiConfigurations: StateFlow<UiConfiguration>, widgetSystem: WidgetSystem<W>, onChanges: () -> Unit = {}): RedwoodComposition

Parameters

scope

A CoroutineScope whose coroutineContext must have a MonotonicFrameClock key which is being ticked.

onChanges

Invoked when changes are being applied to the widget tree. Multiple rounds of changes can be applied in a single frame or setContent call, resulting in multiple invocations of this callback.