Skip to content

//workflow/com.squareup.workflow1.ui/bindShowRendering

bindShowRendering

[androidJvm]
Content
@WorkflowUiExperimentalApi()

fun <RenderingT : Any> View.bindShowRendering(initialRendering: RenderingT, initialViewEnvironment: ViewEnvironment, showRendering: ViewShowRendering<RenderingT>)
More info

This will be deprecated in favor of ScreenViewHolder very soon.

For use by implementations of ViewFactory.buildView. Establishes showRendering as the implementation of View.showRendering for the receiver, possibly replacing the existing one.

  • After this method is called, [View.start](start.md) must be called exactly once before [View.showRendering](show-rendering.md) can be called.
  • If this method is called again *after*[View.start](start.md) (e.g. if a [View](https://developer.android.com/reference/kotlin/android/view/View.html) is reused), the receiver is reset to its initialized state, and [View.start](start.md) must be called again.

See also

androidJvm

com.squareup.workflow1.ui.ViewFactory
com.squareup.workflow1.ui.DecorativeViewFactory