Android 12 Developer Preview is here! Try it out, and give us your feedback!

ProvidedValue

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