Key
interface Key<T : Any!>
android.media.AudioMetadata.Key |
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 |
getName() Returns the internal name of the key. |
abstract Class<T> |
Returns the class type |
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 . |