Skip to content

//workflow/com.squareup.workflow1.ui/ViewEnvironmentKey

ViewEnvironmentKey

[jvm] @WorkflowUiExperimentalApi()

abstract class ViewEnvironmentKey<T : Any>(type: KClass<T>)

Defines a value that can be provided by a ViewEnvironment map, specifying its type and default value.

Constructors

ViewEnvironmentKey [jvm] fun <T : Any> ViewEnvironmentKey(type: KClass<T>)

Functions

Name Summary
combine [jvm]
Content
open fun combine(left: T, right: T): T
More info
Applied from ViewEnvironment.plus when the receiving environment already contains a value for this key.


equals [jvm]
Content
operator override fun equals(other: Any?): Boolean


hashCode [jvm]
Content
override fun hashCode(): Int


toString [jvm]
Content
override fun toString(): String


Properties

Name Summary
default [jvm] abstract val default: T

Inheritors

Name
ScreenViewFactoryFinder
ScreenViewHolder.Companion
AlertDialogThemeResId
BackStackConfig
ModalScreenOverlayOnBackPressed
OverlayDialogFactoryFinder
ViewRegistry