# ProductFlavorAttr

[View Source](https://cs.android.com/search?q=file:com/android/build/api/attributes/ProductFlavorAttr.kt+class:com.android.build.api.attributes.ProductFlavorAttr) Added in 4.2.0


```
interface ProductFlavorAttr : Named
```

<br />

*** ** * ** ***

Type for the attribute holding ProductFlavor information.

There can be more than one attribute associated to each `https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/Configuration.html` object, where each represents a different flavor dimension.

The key should be created with `ProductFlavorAttr.of(flavorDimension)`.

## Summary

| ### Public companion functions |
|---|---|
| `https://docs.gradle.org/current/javadoc/org/gradle/api/attributes/Attribute.html<https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/attributes/ProductFlavorAttr>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/attributes/ProductFlavorAttr#of(kotlin.String)(flavorDimension: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Returns a product flavor attribute for the given flavor dimension |

### Inherited properties

From [org.gradle.api.Named](https://docs.gradle.org/current/javadoc/org/gradle/api/Named.html) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` `https://docs.gradle.org/current/javadoc/org/gradle/api/Named.html#name`

## Public companion functions

### of

Added in 7.1.0

```
fun of(flavorDimension: String): Attribute<ProductFlavorAttr>
```

Returns a product flavor attribute for the given flavor dimension

| Parameters |
|---|---|
| `flavorDimension: 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. |