startShowing

fun <ScreenT : Screen> ScreenViewHolder<ScreenT>.startShowing(initialRendering: ScreenT, initialEnvironment: ViewEnvironment, viewStarter: ViewStarter?)

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 and ScreenViewHolder machinery for you. See ScreenViewFactory for details.

Initializes a ScreenViewHolder that has just been created by ScreenViewFactory.buildView.

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


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

Convenience that combines ScreenViewFactory.buildView and ScreenViewHolder.startShowing, since we rarely need to do work between those two calls.