Property

LocalView

The CompositionLocal containing the current Compose View.

Source set: Android
public val LocalView: ProvidableCompositionLocal<View> =
    computedDefaultOf<View>("LocalView") {
        LocalAndroidComposeView.currentValue ?: noLocalProvidedFor("LocalView")
    }

The CompositionLocal containing the current Compose 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: