共用方式為


AudioRecord.SetPreferredMicrophoneDirection(MicDirection) Method

Definition

Specifies the logical microphone (for processing).

[Android.Runtime.Register("setPreferredMicrophoneDirection", "(I)Z", "GetSetPreferredMicrophoneDirection_IHandler", ApiSince=29)]
public virtual bool SetPreferredMicrophoneDirection (Android.Media.MicDirection direction);
[<Android.Runtime.Register("setPreferredMicrophoneDirection", "(I)Z", "GetSetPreferredMicrophoneDirection_IHandler", ApiSince=29)>]
abstract member SetPreferredMicrophoneDirection : Android.Media.MicDirection -> bool
override this.SetPreferredMicrophoneDirection : Android.Media.MicDirection -> bool

Parameters

direction
MicDirection

Returns

true if sucessful.

Implements

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.

Java documentation for android.media.AudioRecord.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