HostDefaultKey

Known direct subclasses
ViewTreeHostDefaultKey

An Android-specific HostDefaultKey that identifies values stored within the View hierarchy using Resource ID tags.


A type-safe identifier used to define a key for retrieving default values from the hosting environment.

This key is strictly required by compositionLocalWithHostDefaultOf to establish a mapping between a CompositionLocal and a value provided by the host (via the internal HostDefaultProvider).

Parameters
<T : Any?>

The type of the value associated with this key.