# DecoyImplementation

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.DecoyImplementation) 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 DecoyImplementation
  ```

*** ** * ** ***

With decoys enabled, indicates composable implementation function created by compiler plugin.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/DecoyImplementation#DecoyImplementation(kotlin.String,kotlin.Long)(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/DecoyImplementation#id()` Id from original function signature to distinguish overloads. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/DecoyImplementation#name()` Name of this implementation function. | Cmn |

## Public constructors

### DecoyImplementation

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

```
DecoyImplementation(name: String, id: Long)
```

| Parameters |
|---|---|
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | Name of this implementation function. |
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | Id from original function signature to distinguish overloads. |

## Public properties

### id

Cmn

```
val id: Long
```

Id from original function signature to distinguish overloads.

### name

Cmn

```
val name: String
```

Name of this implementation function.