# DeviceSpec

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


```
@Incubating
class DeviceSpec
```

<br />

*** ** * ** ***

A class representing device-specific attributes.

## Summary

| ### Nested types |
|---|
| `@https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html class https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/DeviceSpec.Builder` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/DeviceSpec#equals(kotlin.Any)(other: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/DeviceSpec#hashCode()()` |
| `open 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/DeviceSpec#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<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/DeviceSpec#abis()` The ABIs of the device. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/DeviceSpec#apiLevel()` The API level of the device. |
| `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/DeviceSpec#codeName()` The code name of the device. |
| `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/DeviceSpec#name()` The name of the device which can be helpful in debugging. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/DeviceSpec#screenDensity()` The screen density of the device. |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### abis

Added in 8.8.0

```
val abis: List<String>
```

The ABIs of the device.

### apiLevel

Added in 8.8.0

```
val apiLevel: Int
```

The API level of the device.

### codeName

Added in 8.8.0

```
val codeName: String?
```

The code name of the device.

### name

Added in 8.8.0

```
val name: String?
```

The name of the device which can be helpful in debugging.

### screenDensity

Added in 8.8.0

```
val screenDensity: Int
```

The screen density of the device.