Share via


AudioManager.ClearPreferredMixerAttributes Method

Definition

Clears the current preferred mixer attributes that were previously set via #setPreferredMixerAttributes(AudioAttributes, AudioDeviceInfo, AudioMixerAttributes)

[Android.Runtime.Register("clearPreferredMixerAttributes", "(Landroid/media/AudioAttributes;Landroid/media/AudioDeviceInfo;)Z", "GetClearPreferredMixerAttributes_Landroid_media_AudioAttributes_Landroid_media_AudioDeviceInfo_Handler", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_AUDIO_SETTINGS")]
public virtual bool ClearPreferredMixerAttributes (Android.Media.AudioAttributes attributes, Android.Media.AudioDeviceInfo device);
[<Android.Runtime.Register("clearPreferredMixerAttributes", "(Landroid/media/AudioAttributes;Landroid/media/AudioDeviceInfo;)Z", "GetClearPreferredMixerAttributes_Landroid_media_AudioAttributes_Landroid_media_AudioDeviceInfo_Handler", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_AUDIO_SETTINGS")>]
abstract member ClearPreferredMixerAttributes : Android.Media.AudioAttributes * Android.Media.AudioDeviceInfo -> bool
override this.ClearPreferredMixerAttributes : Android.Media.AudioAttributes * Android.Media.AudioDeviceInfo -> bool

Parameters

attributes
AudioAttributes

the AudioAttributes whose mixer attributes should be cleared.

device
AudioDeviceInfo

the expected routing device

Returns

true only if the preferred mixer attributes are removed successfully.

Attributes

Remarks

Clears the current preferred mixer attributes that were previously set via #setPreferredMixerAttributes(AudioAttributes, AudioDeviceInfo, AudioMixerAttributes)

Java documentation for android.media.AudioManager.clearPreferredMixerAttributes(android.media.AudioAttributes, android.media.AudioDeviceInfo).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to