The second Android 11 Developer Preview is now available, test it out and share your feedback.

ProvidableAmbient

@Immutable abstract class ProvidableAmbient<T> : Ambient<T>
kotlin.Any
   ↳ androidx.compose.Ambient<T>
   ↳ androidx.compose.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.

Inherited properties

Public methods

provides

infix fun provides(value: T): ProvidedValue<T>

Associates an ambient key to a value in a call to Providers.