//workflow/com.squareup.workflow1.ui.backstack
Package com.squareup.workflow1.ui.backstack¶
Types¶
Name | Summary |
---|---|
BackStackConfig | [androidJvm] Content @WorkflowUiExperimentalApi() enum BackStackConfig : Enum<BackStackConfig> More info Informs views whether they’re children of a BackStackContainer, and if so whether they’re the first frame or not. |
BackStackContainer | [androidJvm] Content @WorkflowUiExperimentalApi() open class BackStackContainer@JvmOverloads()constructor(context: Context, attributeSet: AttributeSet?, defStyle: Int, defStyleRes: Int) : FrameLayout More info A container view that can display a stream of BackStackScreen instances. |
BackStackScreen | [jvm] Content @WorkflowUiExperimentalApi() class BackStackScreen<StackedT : Any>(bottom: StackedT, rest: List<StackedT>) More info Represents an active screen (top), and a set of previously visited screens to which we may return (backStack). |
ViewStateCache | [androidJvm] Content @WorkflowUiExperimentalApi() class ViewStateCache : Parcelable More info Handles persistence chores for container views that manage a set of Named renderings, showing a view for one at a time – think back stacks or tab sets. |
Functions¶
Name | Summary |
---|---|
toBackStackScreen | [jvm] Content @WorkflowUiExperimentalApi() fun <T : Any> List<T>.toBackStackScreen(): BackStackScreen<T> |
toBackStackScreenOrNull | [jvm] Content @WorkflowUiExperimentalApi() fun <T : Any> List<T>.toBackStackScreenOrNull(): BackStackScreen<T>? |