# ProductFlavorAttr

# ProductFlavorAttr

```
interface ProductFlavorAttr : Named
```

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.attributes.ProductFlavorAttr](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/attributes/ProductFlavorAttr#) |

Type for the attribute holding ProductFlavor information.

There can be more than one attribute associated to each[org.gradle.api.artifacts.Configuration](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(dimensionName)`.

## Summary

|                                                                                                                                                                                                                                                                       ### Companion functions                                                                                                                                                                                                                                                                        ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Attribute](https://docs.gradle.org/current/javadoc/org/gradle/api/attributes/Attribute.html)\<[ProductFlavorAttr](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/attributes/ProductFlavorAttr#)\> | [of](https://developer.android.com/reference/tools/gradle-api/7.1/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 |

## Companion functions

### of

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

Returns a product flavor attribute for the given flavor dimension