MediaQualityManager.SoundProfileCallback
public
static
abstract
class
MediaQualityManager.SoundProfileCallback
extends Object
java.lang.Object | |
↳ | android.media.quality.MediaQualityManager.SoundProfileCallback |
Callback used to monitor status of sound profiles.
Summary
Public constructors | |
---|---|
SoundProfileCallback()
|
Public methods | |
---|---|
void
|
onError(String profileId, int errorCode)
This is invoked when an issue has occurred. |
void
|
onParameterCapabilitiesChanged(String profileId, List<ParameterCapability> updatedCaps)
This is invoked when parameter capabilities has been changed due to status changes of the content. |
void
|
onSoundProfileAdded(String profileId, SoundProfile profile)
This is invoked when a sound profile has been added. |
void
|
onSoundProfileRemoved(String profileId, SoundProfile profile)
This is invoked when a sound profile has been removed. |
void
|
onSoundProfileUpdated(String profileId, SoundProfile profile)
This is invoked when a sound profile has been updated. |
Inherited methods | |
---|---|
Public constructors
SoundProfileCallback
public SoundProfileCallback ()
Public methods
onError
public void onError (String profileId, int errorCode)
This is invoked when an issue has occurred.
Parameters | |
---|---|
profileId |
String : the profile ID related to the error. null if there is no
associated profile. |
errorCode |
int : the error code
Value is SoundProfile.ERROR_UNKNOWN , SoundProfile.ERROR_NO_PERMISSION , SoundProfile.ERROR_DUPLICATE , SoundProfile.ERROR_INVALID_ARGUMENT , or SoundProfile.ERROR_NOT_ALLOWLISTED |
onParameterCapabilitiesChanged
public void onParameterCapabilitiesChanged (String profileId, List<ParameterCapability> updatedCaps)
This is invoked when parameter capabilities has been changed due to status changes of the content.
Parameters | |
---|---|
profileId |
String : the ID of the profile used by the media content. null if there
is no associated profile |
updatedCaps |
List : the updated capabilities.
This value cannot be null . |
onSoundProfileAdded
public void onSoundProfileAdded (String profileId, SoundProfile profile)
This is invoked when a sound profile has been added.
Parameters | |
---|---|
profileId |
String : the ID of the profile.
This value cannot be null . |
profile |
SoundProfile : the newly added profile.
This value cannot be null . |
onSoundProfileRemoved
public void onSoundProfileRemoved (String profileId, SoundProfile profile)
This is invoked when a sound profile has been removed.
Parameters | |
---|---|
profileId |
String : the ID of the profile.
This value cannot be null . |
profile |
SoundProfile : the removed profile.
This value cannot be null . |
onSoundProfileUpdated
public void onSoundProfileUpdated (String profileId, SoundProfile profile)
This is invoked when a sound profile has been updated.
Parameters | |
---|---|
profileId |
String : the ID of the profile.
This value cannot be null . |
profile |
SoundProfile : the profile with updated info.
This value cannot be null . |