AudioManager.ClearPreferredMixerAttributes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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.