HostDefaultKey


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).

The internal representation of this key is platform-specific. For example, on Android, this acts as a wrapper around a Resource ID to query the View hierarchy, while ensuring the retrieved value matches the type T.

Parameters
<T : Any?>

The type of the value associated with this key.

Summary

Public constructors

<T : Any?> HostDefaultKey()
Cmn
android
<T : Any?> HostDefaultKey(id: Int)
android

Public properties

Int
android

Public constructors

HostDefaultKey

<T : Any?> HostDefaultKey()

HostDefaultKey

<T : Any?> HostDefaultKey(id: Int)

Public properties

id

val idInt