Stay organized with collections
Save and categorize content based on your preferences.
ResValue
class ResValue : Serializable
Resource to be generated by the build system.
Summary
Nested classes
|
abstract |
a generated resource is identified by its type+name as you can create
|
Public constructors
|
Resource to be generated by the build system.
|
Properties
|
String? |
Optional comment.
|
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
val comment: String?
Optional comment.
value
val value: String
value for the resource
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ResValue\n========\n\n```\nclass ResValue : Serializable\n```\n\n|---|---------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [com.android.build.api.variant.ResValue](#) |\n\nResource to be generated by the build system.\n\nSummary\n-------\n\n| ### Nested classes ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract | [Key](/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResValue.Key) a generated resource is identified by its type+name as you can create |\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%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. |\n\n| ### Properties ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [comment](#comment:kotlin.String) Optional comment. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [value](#value:kotlin.String) value for the resource |\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nResValue(\n value: String, \n comment: String? = \"Added from the variant API\")\n```\n\nResource to be generated by the build system.\n\nProperties\n----------\n\n### comment\n\n```\nval comment: String?\n```\n\nOptional comment. \n\n### value\n\n```\nval value: String\n```\n\nvalue for the resource"]]