Stay organized with collections
Save and categorize content based on your preferences.
Key
interface Key<T : Any!>
Key interface for the AudioMetadata
map.
The presence of this Key
interface on an object allows it to reference metadata in the Audio Framework.
Vendors are allowed to implement this Key
interface for their debugging or private application use. To avoid name conflicts, vendor key names should be qualified by the vendor company name followed by a dot; for example, "vendorCompany.someVolume".
Summary
Public methods |
abstract String |
Returns the internal name of the key.
|
abstract Class<T> |
Returns the class type T of the associated value.
|
Public methods
getName
abstract fun getName(): String
Returns the internal name of the key. The name should be unique in the AudioMetadata
namespace. Vendors should prefix their keys with the company name followed by a dot.
Return |
String |
This value cannot be null . |
getValueClass
abstract fun getValueClass(): Class<T>
Returns the class type T
of the associated value. Valid class types for android.os.Build.VERSION_CODES#R
are Integer.class
, Long.class
, Float.class
, Double.class
, String.class
.
Return |
Class<T> |
This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-04 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-04-04 UTC."]]