Package com.squareup.workflow1.ui.backstack

Types

BackStackConfig
Link copied to clipboard
@WorkflowUiExperimentalApi
enum BackStackConfig : Enum<BackStackConfig>

Informs views whether they're children of a BackStackContainer, and if so whether they're the first frame or not.

BackStackContainer
Link copied to clipboard
@WorkflowUiExperimentalApi
open class BackStackContainer @JvmOverloads constructor(context: Context, attributeSet: AttributeSet?, defStyle: Int, defStyleRes: Int) : FrameLayout

A container view that can display a stream of BackStackScreen instances.

ViewStateCache
Link copied to clipboard
@WorkflowUiExperimentalApi
class ViewStateCache : Parcelable

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

withBackStackStateKeyPrefix
Link copied to clipboard
fun ViewEnvironment.withBackStackStateKeyPrefix(prefix: String): ViewEnvironment

Sets a disambiguation prefix used by BackStackContainer when managing androidx.savedstate.SavedStateRegistryOwner. Allows parent containers to use multiple BackStackContainer instances at once.