# ResValue.Key

# ResValue.Key

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

<br />

```
interface ResValue.Key : Serializable
```

<br />

*** ** * ** ***

a generated resource is identified by its type+name as you can create

/foo and @dimen/foo,

To create instances of[Key](https://developer.android.com/reference/tools/gradle-api/8.8/com/android/build/api/variant/ResValue.Key), use[Variant.makeResValueKey](https://developer.android.com/reference/tools/gradle-api/8.8/com/android/build/api/variant/Variant#makeResValueKey(kotlin.String,kotlin.String))function. This interface should not be extended by third party plugin or build scripts.

## Summary

|                              ### Public properties                               |
|----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [name](https://developer.android.com/reference/tools/gradle-api/8.8/com/android/build/api/variant/ResValue.Key#name()) name of the resource.              |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [type](https://developer.android.com/reference/tools/gradle-api/8.8/com/android/build/api/variant/ResValue.Key#type()) type of the resource like 'string' |

## Public properties

### name

Added in 7.0.0  

```
val name: String
```

name of the resource.  

### type

Added in 7.0.0  

```
val type: String
```

type of the resource like 'string'