# ResValue

# ResValue

```
class ResValue : Serializable
```

|---|------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                 ||
| ↳ | [com.android.build.api.variant.ResValue](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/ResValue#) |

Resource to be generated by the build system.

## Summary

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

|                                                                                                                                                                                                          ### Public constructors                                                                                                                                                                                                          ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [<init>](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/variant/ResValue#%3Cinit%3E(kotlin.String,%20kotlin.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)?` `=` "Added from the variant API")` Resource to be generated by the build system. |

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

## Public constructors

### \<init\>

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

Resource to be generated by the build system.

## Properties

### comment

```
val comment: String?
```

Optional comment.  

### value

```
val value: String
```

value for the resource