//workflow/com.squareup.workflow1.ui/LayoutRunner/Companion
Companion¶
[androidJvm] object Companion
Functions¶
Name | Summary |
---|---|
bind | [androidJvm] Content inline fun <BindingT : ViewBinding, RenderingT : Any> bind(noinline bindingInflater: ViewBindingInflater<BindingT>, noinline constructor: (BindingT) -> LayoutRunner<RenderingT>): ViewFactory<RenderingT> More info Creates a ViewFactory that inflates a ViewBinding (BindingT) to show renderings of type RenderingT, using a LayoutRunner created by constructor. [androidJvm] Content inline fun <BindingT : ViewBinding, RenderingT : Any> bind(noinline bindingInflater: ViewBindingInflater<BindingT>, crossinline showRendering: BindingT.(RenderingT, ViewEnvironment) -> Unit): ViewFactory<RenderingT> More info Creates a ViewFactory that inflates a ViewBinding (BindingT) to show renderings of type RenderingT, using a lambda. [androidJvm] Content inline fun <RenderingT : Any> bind(@LayoutRes()layoutId: Int, noinline constructor: (View) -> LayoutRunner<RenderingT>): ViewFactory<RenderingT> More info Creates a ViewFactory that inflates layoutId to show renderings of type RenderingT, using a LayoutRunner created by constructor. |
bindNoRunner | [androidJvm] Content inline fun <RenderingT : Any> bindNoRunner(@LayoutRes()layoutId: Int): ViewFactory<RenderingT> More info Creates a ViewFactory that inflates layoutId to “show” renderings of type RenderingT, with a no-op LayoutRunner. |