ProvidedValue
Kotlin
|Java
class ProvidedValue<T>
kotlin.Any | |
↳ | androidx.compose.runtime.ProvidedValue |
An instance to hold a value provided by CompositionLocalProvider and is created by the
ProvidableCompositionLocal.provides infixed operator. If canOverride is false
, the
provided value will not overwrite a potentially already existing value in the scope.
Summary
Properties | |
---|---|
Boolean | |
CompositionLocal<T> | |
T |
Properties
canOverride
val canOverride: Boolean
compositionLocal
val compositionLocal: CompositionLocal<T>
value
val value: T