# Device

# 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  

<br />

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

<br />

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

|-------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|
| [ManagedVirtualDevice](https://developer.android.com/reference/tools/gradle-api/8.7/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                               |
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) `@`[Internal](https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/Internal.html) [getName](https://developer.android.com/reference/tools/gradle-api/8.7/com/android/build/api/dsl/Device#getName())`()` |

## Public functions

### getName

Added in 8.7.3  

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