# Decoy

Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/internal/Decoy.kt+class:androidx.compose.runtime.internal.Decoy) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  @ExperimentalComposeApi
  @Target(allowedTargets = [AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR])
  annotation Decoy
  ```

*** ** * ** ***

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.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/Decoy#Decoy(kotlin.String,kotlin.Array)(targetName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, vararg signature: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/Decoy#signature()` Serialized signature of the actual composable function. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/Decoy#targetName()` Name of the implementation function which this composable was copied to. | Cmn |

## Public constructors

### Decoy

Cmn Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.9.0)

```
Decoy(targetName: String, vararg signature: String)
```

| Parameters |
|---|---|
| `targetName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | Name of the implementation function which this composable was copied to. |
| `vararg signature: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | Serialized signature of the actual composable function. |

## Public properties

### signature

Cmn

```
val signature: Array<String>
```

Serialized signature of the actual composable function.

### targetName

Cmn

```
val targetName: String
```

Name of the implementation function which this composable was copied to.