//workflow/com.squareup.workflow1.ui.compose/withCompositionRoot
withCompositionRoot¶
[androidJvm]
Content
@WorkflowUiExperimentalApi()
fun ViewEnvironment.withCompositionRoot(root: CompositionRoot): ViewEnvironment
More info
Convenience function for applying a CompositionRoot to this ViewEnvironment‘s ScreenViewFactoryFinder. See ScreenViewFactoryFinder.withCompositionRoot.
[androidJvm]
Content
@WorkflowUiExperimentalApi()
fun ScreenViewFactoryFinder.withCompositionRoot(root: CompositionRoot): ScreenViewFactoryFinder
More info
Returns a ScreenViewFactoryFinder that ensures that any composeScreenViewFactory factories registered in this registry will be wrapped exactly once with a CompositionRoot wrapper. See CompositionRoot for more information.