ProvidableAmbient
Kotlin
|Java
@Stable abstract class ProvidableAmbient<T> : Ambient<T>
kotlin.Any | ||
↳ | androidx.compose.runtime.Ambient<T> | |
↳ | androidx.compose.runtime.ProvidableAmbient |
A ProvidableAmbient can be used in Providers to provide values.
Summary
Public methods | |
---|---|
infix ProvidedValue<T> |
provides(value: T) Associates an ambient key to a value in a call to Providers. |
infix ProvidedValue<T> |
providesDefault(value: T) Associates an ambient key to a value in a call to Providers if the key does not already have an associated value. |
Inherited properties | |
---|---|
Public methods
provides
infix fun provides(value: T): ProvidedValue<T>
Associates an ambient key to a value in a call to Providers.
See Also
providesDefault
infix fun providesDefault(value: T): ProvidedValue<T>
Associates an ambient key to a value in a call to Providers if the key does not already have an associated value.
See Also