Property

LocalHostDefaultProvider

A CompositionLocal that provides the HostDefaultProvider to the composition.

Source set: Common
public val LocalHostDefaultProvider: ProvidableCompositionLocal<HostDefaultProvider> =
    compositionLocalOf {
        error("CompositionLocal LocalHostDefaultProvider not present")
    }

A CompositionLocal that provides the HostDefaultProvider to the composition.

This is intended for internal usage by compositionLocalWithHostDefaultOf to resolve values from the hosting environment (e.g., android.view.View).

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: