Class

ExperimentalComposeUiHostApi

Marks APIs for hosting Compose UI outside of ComposeView, intended for framework integrations that implement their own host (for example, a custom View that drives a Compose hierarchy).

Source set: Common
@RequiresOptIn(
    "This API is experimental and intended for Compose hosting integrations. It may change or be " +
        "removed in future releases."
)
@Target(
    AnnotationTarget.CLASS,
    AnnotationTarget.FUNCTION,
    AnnotationTarget.PROPERTY,
    AnnotationTarget.TYPEALIAS,
)
public annotation class ExperimentalComposeUiHostApi

Marks APIs for hosting Compose UI outside of ComposeView, intended for framework integrations that implement their own host (for example, a custom View that drives a Compose hierarchy).

These APIs are experimental and may change or be removed in future releases.

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: