Start native apps faster with the Composables CLI ->
Class

ComposableInferredTargetConstraints

An annotation generated by the Compose compiler plugin.

Source set: Common
public annotation class ComposableInferredTargetConstraints(
    val positional: String,
    val indexed: String,
)

An annotation generated by the Compose compiler plugin. Do not use explicitly.

The Compose compiler plugin generates this annotation to supplement ComposableInferredTarget annotations on functions that are themselves, or have lambda parameters that are, only compatible with a limited set of appliers.

This is intended to only be generated by the plugin and should not be used directly. Use ComposableTarget to explicitly indicate that a function is only compatible with a limited set of appliers instead.

For example, a function that has: 1) a body and a single lambda parameter that expect the same applier, where that applier is only allowed to have the name "WComposable" or "XComposable" 2) a return type that is a lambda whose body expects an applier that has the name "YComposable" or "ZComposable"

would have the following annotations added to it by the compiler plugin: