# HasAndroidResources

# HasAndroidResources

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

<br />

```
interface HasAndroidResources
```

<br />

Known direct subclasses  
[AndroidTest](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/AndroidTest),[DeviceTest](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/DeviceTest),[TestFixtures](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/TestFixtures),[Variant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/Variant)  

|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [AndroidTest](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/AndroidTest)   | Model for Android Test components that contains build-time properties  |
| [DeviceTest](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/DeviceTest)     | Model for Device Test components that contains build-time properties   |
| [TestFixtures](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/TestFixtures) | Model for Test Fixtures components that contains build-time properties |
| [Variant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/Variant)           | Model for variant components that only contains build-time properties  |

Known indirect subclasses  
[AndroidTest](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/AndroidTest),[ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/ApplicationVariant),[DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/DynamicFeatureVariant),[KotlinMultiplatformAndroidVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/KotlinMultiplatformAndroidVariant),[LibraryVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/LibraryVariant),[TestVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/TestVariant)  

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
| [AndroidTest](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/AndroidTest)                                             | Model for Android Test components that contains build-time properties          |
| [ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/ApplicationVariant)                               | Model for application components that only contains build-time properties.     |
| [DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/DynamicFeatureVariant)                         | Model for dynamic feature components that only contains build-time properties. |
| [KotlinMultiplatformAndroidVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/KotlinMultiplatformAndroidVariant) | Properties for the main Variant of a kotlin multiplatform android library      |
| [LibraryVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/LibraryVariant)                                       | Model for library components that only contains build-time properties.         |
| [TestVariant](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/TestVariant)                                             | Model for test components that only contains build-time properties.            |

*** ** * ** ***

Build-time properties for[Component](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/Component)that have Android resources.

## Summary

|                                                  ### Public functions                                                   |
|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ResValue.Key](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/ResValue.Key) | [makeResValueKey](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/HasAndroidResources#makeResValueKey(kotlin.String,kotlin.String))`(type: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Make a[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/ResValue.Key)to interact with[resValues](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/HasAndroidResources#resValues())'s[MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html) |

|                                                                                                                                                              ### Public properties                                                                                                                                                              |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`>`                                                                                                                                                               | [pseudoLocalesEnabled](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/HasAndroidResources#pseudoLocalesEnabled()) Variant's is pseudo locales enabled, initialized by the corresponding DSL elements.                                        |
| [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)`<`[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/ResValue.Key)`, `[ResValue](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/ResValue)`>` | [resValues](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/HasAndroidResources#resValues()) Variant's[ResValue](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/ResValue)which will be generated. |

## Public functions

### makeResValueKey

Added in 7.0.0  

```
fun makeResValueKey(type: String, name: String): ResValue.Key
```

Make a[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/ResValue.Key)to interact with[resValues](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/HasAndroidResources#resValues())'s[MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)  

## Public properties

### pseudoLocalesEnabled

Added in 7.0.0  

```
val pseudoLocalesEnabled: Property<Boolean>
```

Variant's is pseudo locales enabled, initialized by the corresponding DSL elements.  

### resValues

Added in 7.0.0  

```
val resValues: MapProperty<ResValue.Key, ResValue>
```

Variant's[ResValue](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/variant/ResValue)which will be generated.