---
title: "NoLiveLiterals"
description: "This annotation is used to indicate to the Compose Compiler to not attempt to generate live
literals inside the scope of the declaration it is applied to, even when the live literals code
generation is turned on."
type: "class"
---

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


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

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


```kotlin
@Target(
    AnnotationTarget.PROPERTY,
    AnnotationTarget.FUNCTION,
    AnnotationTarget.CLASS,
    AnnotationTarget.FILE,
)
public annotation class NoLiveLiterals
```


This annotation is used to indicate to the Compose Compiler to not attempt to generate live
literals inside the scope of the declaration it is applied to, even when the live literals code
generation is turned on.



