Added in API level 30
Summary: Methods | Inherited Methods
AudioMetadataMap
public interface AudioMetadataMap
implements AudioMetadataReadMap
android.media.AudioMetadataMap |
AudioMetadataMap is a writeable Map
-style interface of AudioMetadata.Key
value pairs. This interface is not guaranteed to be thread-safe unless the underlying implementation for the AudioMetadataMap
states it as thread safe.
See also:
Summary
Public methods | |
---|---|
abstract <T> T | remove(Key<T> key) Removes the value associated with the key. |
abstract <T> T | set(Key<T> key, T value) Sets a value for the key. |
Inherited methods | |
---|---|
Public methods
remove
Added in API level 30
public abstract T remove (Key<T> key)
Removes the value associated with the key.
Parameters | |
---|---|
key | Key : interface for storing the value. This value cannot be null . |
Returns | |
---|---|
T | the value of the key, null if it doesn't exist. |
set
Added in API level 30
public abstract T set (Key<T> key, T value)
Sets a value for the key.
Parameters | |
---|---|
key | Key : interface for storing the value. This value cannot be null . |
value | T : a non-null value of type T. |
Returns | |
---|---|
T | the previous value associated with key or null if it doesn't exist. |