# ExplicitGroupsComposable

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

  ```
  @Retention(value = AnnotationRetention.SOURCE)
  @Target(allowedTargets = [AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER])
  annotation ExplicitGroupsComposable
  ```

*** ** * ** ***

This annotation can be applied to `https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable` functions so that no groups will be generated in the body of the function it annotates. The expectation is that the groups the function should produce will be created manually using methods on `https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#currentComposer()`.

Unlike `https://developer.android.com/reference/kotlin/androidx/compose/runtime/ReadOnlyComposable`, the expectation with this annotation is that the marked `https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable` does in fact make writes to the `https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composer` and produces a single group.

Caution: Use of this annotation removes all guarantees provided by the Compose Compiler and usage of it should be considered at your own risk.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/ExplicitGroupsComposable#ExplicitGroupsComposable()()` | Cmn |

## Public constructors

### ExplicitGroupsComposable

Cmn

```
ExplicitGroupsComposable()
```