Stay organized with collections
Save and categorize content based on your preferences.
ResValue
class ResValue
Resource to be generated by the build system.
Summary
Nested types |
ResValue.Key |
a generated resource is identified by its type+name as you can create
|
Public properties |
String? |
Optional comment.
|
String |
value for the resource
|
Public constructors
Public properties
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ResValue\n========\n\n\n```\nclass ResValue\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nResource to be generated by the build system.\n\nSummary\n-------\n\n| ### Nested types ||\n|--------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| [ResValue.Key](/reference/tools/gradle-api/7.2/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| [ResValue](/reference/tools/gradle-api/7.2/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)`?)` |\n\n| ### Public properties ||\n|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [comment](/reference/tools/gradle-api/7.2/com/android/build/api/variant/ResValue#comment()) Optional comment. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [value](/reference/tools/gradle-api/7.2/com/android/build/api/variant/ResValue#value()) value for the resource |\n\nPublic constructors\n-------------------\n\n### ResValue\n\n```\nResValue(value: String?, comment: String? = \"Added from the variant API\")\n```\n\nPublic properties\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"]]