DefaultDevicePerformance


public final class DefaultDevicePerformance implements DevicePerformance


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

Public methods

int

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

Public constructors

DefaultDevicePerformance

Added in 1.0.0
public DefaultDevicePerformance()

Public methods

getMediaPerformanceClass

Added in 1.0.0
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 Build.VERSION_CODES starting with VERSION_CODES.R.

Defaults to VERSION.MEDIA_PERFORMANCE_CLASS