Skip to content

//workflow/com.squareup.workflow1.ui/AsScreen

AsScreen

[jvm] @WorkflowUiExperimentalApi()

class AsScreen<W : Any>(rendering: W) : Screen, Compatible

Provides backward compatibility for legacy non-Screen renderings. This is a migration tool for code bases that are still adopting the Screen and Overlay interfaces, and will be deprecated and deleted sooner or later.

Constructors

AsScreen [jvm] fun <W : Any> AsScreen(rendering: W)

Properties

Name Summary
compatibilityKey [jvm] open override val compatibilityKey: StringInstances of the same type are compatible iff they have the same compatibilityKey.
rendering [jvm] val rendering: W