# ComposeOptions

# ComposeOptions

<br />

```
public interface ComposeOptions
```

<br />

*** ** * ** ***

Optional settings for the Compose feature.

## Summary

|                                           ### Public methods                                            |
|---------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `abstract `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) | [getKotlinCompilerExtensionVersion](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/ComposeOptions#getKotlinCompilerExtensionVersion())`()` Sets the version of the Kotlin Compiler extension for the project or null if using the default one.                                                                                                                                                  |
| `abstract `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) | [getKotlinCompilerVersion](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/ComposeOptions#getKotlinCompilerVersion())`()` Sets the version of the Kotlin Compiler used to compile the project or null if using the default one.                                                                                                                                                                  |
| `abstract boolean`                                                                                      | [getUseLiveLiterals](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/ComposeOptions#getUseLiveLiterals())`()` Enables live literals in Compose                                                                                                                                                                                                                                                   |
| `abstract void`                                                                                         | [setKotlinCompilerExtensionVersion](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/ComposeOptions#setKotlinCompilerExtensionVersion(kotlin.String))`(` ` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` kotlinCompilerExtensionVersion` `)` Sets the version of the Kotlin Compiler extension for the project or null if using the default one. |
| `abstract void`                                                                                         | [setKotlinCompilerVersion](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/ComposeOptions#setKotlinCompilerVersion(kotlin.String))`(`[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` kotlinCompilerVersion)` Sets the version of the Kotlin Compiler used to compile the project or null if using the default one.                                 |
| `abstract void`                                                                                         | [setUseLiveLiterals](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/ComposeOptions#setUseLiveLiterals(kotlin.Boolean))`(boolean useLiveLiterals)` Enables live literals in Compose                                                                                                                                                                                                              |

## Public methods

### getKotlinCompilerExtensionVersion

```
abstract String getKotlinCompilerExtensionVersion()
```

Sets the version of the Kotlin Compiler extension for the project or null if using the default one.  

### getKotlinCompilerVersion

```
abstract String getKotlinCompilerVersion()
```

Sets the version of the Kotlin Compiler used to compile the project or null if using the default one.  

### getUseLiveLiterals

```
abstract boolean getUseLiveLiterals()
```

Enables live literals in Compose  

### setKotlinCompilerExtensionVersion

```
abstract void setKotlinCompilerExtensionVersion(
    String kotlinCompilerExtensionVersion
)
```

Sets the version of the Kotlin Compiler extension for the project or null if using the default one.  

### setKotlinCompilerVersion

```
abstract void setKotlinCompilerVersion(String kotlinCompilerVersion)
```

Sets the version of the Kotlin Compiler used to compile the project or null if using the default one.  

### setUseLiveLiterals

```
abstract void setUseLiveLiterals(boolean useLiveLiterals)
```

Enables live literals in Compose