# DefaultDevicePerformance

# DefaultDevicePerformance

Artifact:[androidx.core:core-performance](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/performance/DefaultDevicePerformance.kt+class:androidx.core.performance.DefaultDevicePerformance)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/performance/DefaultDevicePerformance "View this page in Java")

<br />

```
class DefaultDevicePerformance : DevicePerformance
```

<br />

*** ** * ** ***

Reports the media performance class of the device. Contains statically specified values and can be used as a fallback alternative to suppliers with dynamic values.

## Summary

|                                                                   ### Public constructors                                                                    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DefaultDevicePerformance](https://developer.android.com/reference/kotlin/androidx/core/performance/DefaultDevicePerformance#DefaultDevicePerformance())`()` |

|                               ### Public properties                                |
|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [mediaPerformanceClass](https://developer.android.com/reference/kotlin/androidx/core/performance/DefaultDevicePerformance#mediaPerformanceClass()) The media performance class of the device or 0 if none. |

## Public constructors

### DefaultDevicePerformance

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)  

```
DefaultDevicePerformance()
```  

## Public properties

### mediaPerformanceClass

```
open val mediaPerformanceClass: Int
```

The media performance class of the device or 0 if none.

If this value is not`0`, the device conforms to the media performance class definition of the SDK version of this value. This value is stable for the duration of the process.

Possible non-zero values are defined in[Build.VERSION_CODES](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html)starting with[VERSION_CODES.R](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#R()).

Defaults to[VERSION.MEDIA_PERFORMANCE_CLASS](https://developer.android.com/reference/android/os/Build.VERSION.html#MEDIA_PERFORMANCE_CLASS())