Interface

HostDefaultKey

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

Source set: Common
public interface HostDefaultKey<T>

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 The type of the value associated with this key.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: