Bagikan melalui


MediaRecorder.SetPreferredMicrophoneFieldDimension(Single) Method

Definition

Specifies the zoom factor (i.

[Android.Runtime.Register("setPreferredMicrophoneFieldDimension", "(F)Z", "GetSetPreferredMicrophoneFieldDimension_FHandler", ApiSince=29)]
public virtual bool SetPreferredMicrophoneFieldDimension (float zoom);
[<Android.Runtime.Register("setPreferredMicrophoneFieldDimension", "(F)Z", "GetSetPreferredMicrophoneFieldDimension_FHandler", ApiSince=29)>]
abstract member SetPreferredMicrophoneFieldDimension : single -> bool
override this.SetPreferredMicrophoneFieldDimension : single -> bool

Parameters

zoom
Single

the desired field dimension of microphone capture. Range is from -1 (wide angle), though 0 (no zoom) to 1 (maximum zoom).

Returns

true if sucessful.

Implements

Attributes

Remarks

Specifies the zoom factor (i.e. the field dimension) for the selected microphone (for processing). The selected microphone is determined by the use-case for the stream.

Java documentation for android.media.MediaRecorder.setPreferredMicrophoneFieldDimension(float).

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