# FunctionKeyMeta

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/FunctionKeyMeta.kt+class:androidx.compose.runtime.internal.FunctionKeyMeta) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.2.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  @ComposeCompilerApi
  @Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION])
  @Retention(value = AnnotationRetention.BINARY)
  @Repeatable
  annotation FunctionKeyMeta
  ```

*** ** * ** ***

This annotation is applied to the FunctionKeyMeta classes created by the Compose Compiler. These classes will have multiple of these annotations, each one corresponding to a single composable function. The annotation holds some metadata about the function itself and is intended to be used to provide information useful to tooling.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/FunctionKeyMeta#FunctionKeyMeta(kotlin.Int,kotlin.Int,kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, startOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, endOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/FunctionKeyMeta#endOffset()` The startOffset of the function in the source file at the time of compilation. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/FunctionKeyMeta#key()` The key used for the function's group. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/internal/FunctionKeyMeta#startOffset()` The startOffset of the function in the source file at the time of compilation. | Cmn |

## Public constructors

### FunctionKeyMeta

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

```
FunctionKeyMeta(key: Int, startOffset: Int, endOffset: Int)
```

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The key used for the function's group. |
| `startOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The startOffset of the function in the source file at the time of compilation. |
| `endOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The startOffset of the function in the source file at the time of compilation. |

## Public properties

### endOffset

Cmn

```
val endOffset: Int
```

The startOffset of the function in the source file at the time of compilation.

### key

Cmn

```
val key: Int
```

The key used for the function's group.

### startOffset

Cmn

```
val startOffset: Int
```

The startOffset of the function in the source file at the time of compilation.