PlayServicesDevicePerformance


public final class PlayServicesDevicePerformance implements DevicePerformance


A DevicePerformance that uses Google Play Services to retrieve media performance class data.

Summary

Public constructors

A DevicePerformance that uses Google Play Services to retrieve media performance class data.

Public methods

int

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

Public constructors

PlayServicesDevicePerformance

Added in 1.0.0
public PlayServicesDevicePerformance(@NonNull Context context)

A DevicePerformance that uses Google Play Services to retrieve media performance class data.

Parameters
@NonNull Context context

The application context value to use.

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