AudioManager.OnPreferredMixerAttributesChangedListener
public
static
interface
AudioManager.OnPreferredMixerAttributesChangedListener
android.media.AudioManager.OnPreferredMixerAttributesChangedListener |
Interface to be notified of changes in the preferred mixer attributes.
Note that this listener will only be invoked whenever
AudioManager.setPreferredMixerAttributes(android.media.AudioAttributes, android.media.AudioDeviceInfo, android.media.AudioMixerAttributes)
or AudioManager.clearPreferredMixerAttributes(android.media.AudioAttributes, android.media.AudioDeviceInfo)
or device
disconnection causes a change in preferred mixer attributes.
See also:
Summary
Public methods | |
---|---|
abstract
void
|
onPreferredMixerAttributesChanged(AudioAttributes attributes, AudioDeviceInfo device, AudioMixerAttributes mixerAttributes)
Called on the listener to indicate that the preferred mixer attributes for the audio attributes over the given device has changed. |
Public methods
onPreferredMixerAttributesChanged
public abstract void onPreferredMixerAttributesChanged (AudioAttributes attributes, AudioDeviceInfo device, AudioMixerAttributes mixerAttributes)
Called on the listener to indicate that the preferred mixer attributes for the audio attributes over the given device has changed.
Parameters | |
---|---|
attributes |
AudioAttributes : the audio attributes for playback
This value cannot be null . |
device |
AudioDeviceInfo : the targeted device
This value cannot be null . |
mixerAttributes |
AudioMixerAttributes : the AudioMixerAttributes that contains information for
preferred mixer attributes or null if preferred mixer attributes
is cleared |