Skip to content

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

ViewEnvironmentKey

[androidJvm] @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 [androidJvm] fun <T : Any> ViewEnvironmentKey(type: KClass<T>)

Functions

Name Summary
equals [androidJvm]
Content
operator override fun equals(other: Any?): Boolean


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


toString [androidJvm]
Content
open override fun toString(): String


Properties

Name Summary
default [androidJvm] abstract val default: T

Inheritors

Name
BackStackConfig
ViewRegistry