Stay organized with collections
Save and categorize content based on your preferences.
@ShowFirstParty class MediaPerformanceClassResult : AbstractSafeParcelable
Data object used for retrieving the media performance result.
Summary
Public constructors
|
Data object used for retrieving the media performance result.
|
Properties
|
Int |
The media performance class of the device or 0 if none.
|
Public constructors
<init>
MediaPerformanceClassResult(mediaPerformanceClass: Int)
Data object used for retrieving the media performance result.
Public methods
Properties
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.
Possible non-zero values are defined in android.os.Build.VERSION_CODES
starting with
android.os.Build.VERSION_CODES.R
.
Defaults to android.os.Build.VERSION.MEDIA_PERFORMANCE_CLASS
.
Companion properties
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eMediaPerformanceClassResult\u003c/code\u003e is a data object used for retrieving the media performance result of a device.\u003c/p\u003e\n"],["\u003cp\u003eIt contains the \u003ccode\u003emediaPerformanceClass\u003c/code\u003e property which indicates the device's performance class, with 0 meaning none and other values corresponding to SDK versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCREATOR\u003c/code\u003e property provides a way to create instances of this data object for parceling.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the \u003ccode\u003ewriteToParcel\u003c/code\u003e method to write the data to a parcel for sharing across processes.\u003c/p\u003e\n"]]],["`MediaPerformanceClassResult` is a data object for obtaining a device's media performance classification. It contains `mediaPerformanceClass`, an integer indicating the device's media performance capabilities, or 0 if none. The class offers a constructor to create an instance with the performance class and a `writeToParcel` method for parceling. `CREATOR` allows for the creation of instances from a parcel. Non-zero values align with `android.os.Build.VERSION_CODES`, defaulting to `MEDIA_PERFORMANCE_CLASS`.\n"],null,[]]