# ResValue

# ResValue

<br />

```
class ResValue : Serializable
```

<br />

*** ** * ** ***

Resource to be generated by the build system.

## Summary

|                                                                                        ### Nested types                                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|
| [ResValue.Key](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/variant/ResValue.Key) | a generated resource is identified by its type+name as you can create |

|                                                                                                                                                               ### Public constructors                                                                                                                                                               ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [ResValue](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/variant/ResValue#ResValue(kotlin.String,kotlin.String))`(value: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, comment: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)` |

|                                                                                                      ### Public properties                                                                                                       ||
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [comment](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/variant/ResValue#comment()) Optional comment.  |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)    | [value](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/variant/ResValue#value()) value for the resource |

## Public constructors

### ResValue

```
ResValue(value: String, comment: String? = "Added from the variant API")
```

## Public properties

### comment

```
val comment: String?
```

Optional comment.  

### value

```
val value: String
```

value for the resource