Skip to content

//workflow/com.squareup.workflow1.ui/startShowing

startShowing

[androidJvm]
Content
@WorkflowUiExperimentalApi()

fun <ScreenT : Screen> ScreenViewFactory<ScreenT>.startShowing(initialRendering: ScreenT, initialEnvironment: ViewEnvironment, contextForNewView: Context, container: ViewGroup? = null, viewStarter: ViewStarter? = null): ScreenViewHolder<ScreenT>
More info

It is rare to call this method directly. Instead the most common path is to pass Screen instances to WorkflowViewStub.show, which will apply the ScreenViewFactory machinery for you.

Creates a ScreenViewHolder wrapping a View able to display a stream of ScreenT renderings, starting with initialRendering.

To add more initialization behavior (typically a call to WorkflowLifecycleOwner.installOn), provide a viewStarter.