# 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


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

<br />

*** ** * ** ***

a generated resource is identified by its type+name as you can create @string/foo and @dimen/foo,

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

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/ResValue.Key#name()` name of the resource. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/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'