# 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)

*** ** * ** ***


```
public final class DefaultDevicePerformance implements 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 |
|---|
| `https://developer.android.com/reference/androidx/core/performance/DefaultDevicePerformance#DefaultDevicePerformance()()` |

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/core/performance/DefaultDevicePerformance#getMediaPerformanceClass()()` 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)

```
public DefaultDevicePerformance()
```

## Public methods

### getMediaPerformanceClass

```
public int getMediaPerformanceClass()
```

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 `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html` starting with `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#R`.

Defaults to `https://developer.android.com/reference/android/os/Build.VERSION.html#MEDIA_PERFORMANCE_CLASS`