Compartir a través de


IMicrophoneDirection.SetPreferredMicrophoneFieldDimension(Single) Method

Definition

Specifies the zoom factor (i.

[Android.Runtime.Register("setPreferredMicrophoneFieldDimension", "(F)Z", "GetSetPreferredMicrophoneFieldDimension_FHandler:Android.Media.IMicrophoneDirectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)]
public bool SetPreferredMicrophoneFieldDimension (float zoom);
[<Android.Runtime.Register("setPreferredMicrophoneFieldDimension", "(F)Z", "GetSetPreferredMicrophoneFieldDimension_FHandler:Android.Media.IMicrophoneDirectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)>]
abstract member 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.

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.

Usage would include specifying the audio focus to follow the zoom specified for the camera being used to capture video.

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