MediaRecorder.SetPreferredDevice(AudioDeviceInfo) 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.
Specifies an audio device (via an AudioDeviceInfo
object) to route
the input from this MediaRecorder.
[Android.Runtime.Register("setPreferredDevice", "(Landroid/media/AudioDeviceInfo;)Z", "GetSetPreferredDevice_Landroid_media_AudioDeviceInfo_Handler", ApiSince=28)]
public virtual bool SetPreferredDevice (Android.Media.AudioDeviceInfo? deviceInfo);
[<Android.Runtime.Register("setPreferredDevice", "(Landroid/media/AudioDeviceInfo;)Z", "GetSetPreferredDevice_Landroid_media_AudioDeviceInfo_Handler", ApiSince=28)>]
abstract member SetPreferredDevice : Android.Media.AudioDeviceInfo -> bool
override this.SetPreferredDevice : Android.Media.AudioDeviceInfo -> bool
Parameters
- deviceInfo
- AudioDeviceInfo
The AudioDeviceInfo
specifying the audio source.
If deviceInfo is null, default routing is restored.
Returns
true if succesful, false if the specified AudioDeviceInfo
is non-null and
does not correspond to a valid audio input device.
Implements
- Attributes
Remarks
Specifies an audio device (via an AudioDeviceInfo
object) to route the input from this MediaRecorder.
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.