Skip to content

//workflow/com.squareup.workflow1.ui/Screen

Screen

[jvm] @WorkflowUiExperimentalApi()

interface Screen

Marker interface implemented by renderings that map to a UI system’s 2d view class.

Inheritors

Name
AndroidScreen
ScreenViewHolder.Companion
AsScreen
NamedScreen
BackStackScreen
BodyAndModalsScreen
EnvironmentScreen

Extensions

Name Summary
withEnvironment [jvm]
Content
@WorkflowUiExperimentalApi()

fun Screen.withEnvironment(environment: ViewEnvironment = ViewEnvironment.EMPTY): EnvironmentScreen<*>
More info
Returns an EnvironmentScreen derived from the receiver, whose EnvironmentScreen.environment includes the values in the given environment.


withRegistry [jvm]
Content
@WorkflowUiExperimentalApi()

fun Screen.withRegistry(viewRegistry: ViewRegistry): EnvironmentScreen<*>
More info
Returns an EnvironmentScreen derived from the receiver, whose EnvironmentScreen.environment includes viewRegistry.