SoundProfileCallback
abstract class SoundProfileCallback
kotlin.Any | |
↳ | android.media.quality.MediaQualityManager.SoundProfileCallback |
Callback used to monitor status of sound profiles.
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
This is invoked when an issue has occurred. |
open Unit |
onParameterCapabilitiesChanged(profileId: String?, updatedCaps: MutableList<ParameterCapability!>) This is invoked when parameter capabilities has been changed due to status changes of the content. |
open Unit |
onSoundProfileAdded(profileId: String, profile: SoundProfile) This is invoked when a sound profile has been added. |
open Unit |
onSoundProfileRemoved(profileId: String, profile: SoundProfile) This is invoked when a sound profile has been removed. |
open Unit |
onSoundProfileUpdated(profileId: String, profile: SoundProfile) This is invoked when a sound profile has been updated. |
Public constructors
SoundProfileCallback
SoundProfileCallback()
Public methods
onError
open fun onError(
profileId: String?,
errorCode: Int
): Unit
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 android.media.quality.SoundProfile#ERROR_UNKNOWN , android.media.quality.SoundProfile#ERROR_NO_PERMISSION , android.media.quality.SoundProfile#ERROR_DUPLICATE , android.media.quality.SoundProfile#ERROR_INVALID_ARGUMENT , or android.media.quality.SoundProfile#ERROR_NOT_ALLOWLISTED |
onParameterCapabilitiesChanged
open fun onParameterCapabilitiesChanged(
profileId: String?,
updatedCaps: MutableList<ParameterCapability!>
): Unit
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 |
MutableList<ParameterCapability!>: the updated capabilities. This value cannot be null . |
onSoundProfileAdded
open fun onSoundProfileAdded(
profileId: String,
profile: SoundProfile
): Unit
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
open fun onSoundProfileRemoved(
profileId: String,
profile: SoundProfile
): Unit
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
open fun onSoundProfileUpdated(
profileId: String,
profile: SoundProfile
): Unit
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 . |