//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 ViewRegistry. See ViewRegistry.withCompositionRoot.
[androidJvm]
Content
@WorkflowUiExperimentalApi()
fun ViewRegistry.withCompositionRoot(root: CompositionRoot): ViewRegistry
More info
Returns a ViewRegistry that ensures that any composeViewFactory factories registered in this registry will be wrapped exactly once with a CompositionRoot wrapper. See CompositionRoot for more information.