---
title: "DisallowComposableCalls"
description: "This will prevent composable calls from happening inside of the function that it applies to. This
is usually applied to lambda parameters of inline composable functions that ought to be inlined
but cannot safely have composable calls in them."
type: "class"
---

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


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

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


```kotlin
@MustBeDocumented
@Target(AnnotationTarget.TYPE)
public annotation class DisallowComposableCalls
```


This will prevent composable calls from happening inside of the function that it applies to. This
is usually applied to lambda parameters of inline composable functions that ought to be inlined
but cannot safely have composable calls in them.



