//workflow/com.squareup.workflow1.ui/LayoutRunner
LayoutRunner¶
[androidJvm] @WorkflowUiExperimentalApi()
fun fun interface LayoutRunner<RenderingT : Any>
This will be deprecated in favor of ScreenViewRunner very soon.
A delegate that implements a showRendering method to be called when a workflow rendering of type RenderingT is ready to be displayed in a view inflated from a layout resource by a ViewRegistry. (Use BuilderViewFactory if you want to build views from code rather than layouts.)
If you’re using AndroidX ViewBinding you likely won’t need to implement this interface at all. For details, see the three overloads of LayoutRunner.bind.
Types¶
Name | Summary |
---|---|
Companion | [androidJvm] Content object Companion |
Functions¶
Name | Summary |
---|---|
showRendering | [androidJvm] Content abstract fun showRendering(rendering: RenderingT, viewEnvironment: ViewEnvironment) |