# Device

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


```
@Incubating
interface Device : Named, Serializable
```

<br />

Known direct subclasses [ManagedVirtualDevice](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/ManagedVirtualDevice)

|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/ManagedVirtualDevice` | Device type for emulators to be managed by the Android Gradle Plugin. |

*** ** * ** ***

Top-level interface for all devices to run applications by tasks in the Android Gradle Plugin.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `@https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html @https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/Internal.html https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Device#getName()()` |

| ### 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/dsl/Device#name()` |

## Public functions

### getName

```
@Incubating
@Internal
fun getName(): String
```

## Public properties

### name

```
val name: String
```