Stay organized with collections
Save and categorize content based on your preferences.
ProductFlavorAttr.Companion
@Incubating object ProductFlavorAttr.Companion
Summary
Public functions
of
@Incubating
fun of(flavorDimension: String): Attribute<ProductFlavorAttr>
Returns a product flavor attribute for the given flavor dimension
Parameters |
flavorDimension: String |
The name of the flavor dimension, as specified in the Android Gradle Plugin DSL.
|
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,["# ProductFlavorAttr.Companion\n===========================\n\n\n```\n@Incubating object ProductFlavorAttr.Companion\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Attribute](https://docs.gradle.org/current/javadoc/org/gradle/api/attributes/Attribute.html)`\u003c`[ProductFlavorAttr](/reference/tools/gradle-api/8.2/com/android/build/api/attributes/ProductFlavorAttr)`\u003e` | [of](/reference/tools/gradle-api/8.2/com/android/build/api/attributes/ProductFlavorAttr.Companion#of(kotlin.String))`(flavorDimension: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Returns a product flavor attribute for the given flavor dimension |\n\nPublic functions\n----------------\n\n### of\n\n```\n@Incubating\nfun of(flavorDimension: String): Attribute\u003cProductFlavorAttr\u003e\n```\n\nReturns a product flavor attribute for the given flavor dimension \n\n| Parameters ||\n|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|\n| `flavorDimension: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | The name of the flavor dimension, as specified in the Android Gradle Plugin DSL. |"]]