IMicrophoneDirection.SetPreferredMicrophoneDirection(MicDirection) Method

Definition

Specifies the logical microphone (for processing).

[Android.Runtime.Register("setPreferredMicrophoneDirection", "(I)Z", "GetSetPreferredMicrophoneDirection_IHandler:Android.Media.IMicrophoneDirectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)]
public bool SetPreferredMicrophoneDirection (Android.Media.MicDirection direction);
[<Android.Runtime.Register("setPreferredMicrophoneDirection", "(I)Z", "GetSetPreferredMicrophoneDirection_IHandler:Android.Media.IMicrophoneDirectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)>]
abstract member SetPreferredMicrophoneDirection : Android.Media.MicDirection -> bool

Parameters

direction
MicDirection

Direction constant.

Returns

true if sucessful.

Attributes

Remarks

Specifies the logical microphone (for processing). Applications can use this to specify which side of the device to optimize capture from. Typically used in conjunction with the camera capturing video.

Usage would include specifying the audio capture to follow camera being used to capture video.

Java documentation for android.media.MicrophoneDirection.setPreferredMicrophoneDirection(int).

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