---
title: "Decoy"
description: "With decoys enabled, indicates original composable function that was stubbed by compiler plugin.
Provides metadata to link it with the implementation function generated by compiler."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalComposeApi
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR)
public annotation class Decoy(val targetName: String, vararg val signature: String)
```


With decoys enabled, indicates original composable function that was stubbed by compiler plugin.
Provides metadata to link it with the implementation function generated by compiler.

#### Parameters

| | |
| --- | --- |
| targetName | Name of the implementation function which this composable was copied to. |
| signature | Serialized signature of the actual composable function. |




