//workflow/com.squareup.workflow1.ui/NamedScreen
NamedScreen¶
[jvm] @WorkflowUiExperimentalApi()
data class NamedScreen<W : Screen>(wrapped: W, name: String) : Screen, Compatible
Allows Screen renderings that do not implement Compatible themselves to be distinguished by more than just their type. Instances are compatible if they have the same name and have compatible fields.
UI kits are expected to provide handling for this class by default.
Constructors¶
NamedScreen | [jvm] fun <W : Screen> NamedScreen(wrapped: W, name: String) |
Functions¶
Name | Summary |
---|---|
toString | [jvm] Content open override fun toString(): String |
Properties¶
Name | Summary |
---|---|
compatibilityKey | [jvm] open override val compatibilityKey: StringInstances of the same type are compatible iff they have the same compatibilityKey. |
name | [jvm] val name: String |
wrapped | [jvm] val wrapped: W |