Compartilhar via


Camera.Parameters.SetPreviewFpsRange(Int32, Int32) Method

Definition

Caution

deprecated

Sets the minimum and maximum preview fps.

[Android.Runtime.Register("setPreviewFpsRange", "(II)V", "GetSetPreviewFpsRange_IIHandler")]
[System.Obsolete("deprecated")]
public virtual void SetPreviewFpsRange (int min, int max);
[<Android.Runtime.Register("setPreviewFpsRange", "(II)V", "GetSetPreviewFpsRange_IIHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetPreviewFpsRange : int * int -> unit
override this.SetPreviewFpsRange : int * int -> unit

Parameters

min
Int32

the minimum preview fps (scaled by 1000).

max
Int32

the maximum preview fps (scaled by 1000).

Attributes

Exceptions

if fps range is invalid.

Remarks

Sets the minimum and maximum preview fps. This controls the rate of preview frames received in PreviewCallback. The minimum and maximum preview fps must be one of the elements from #getSupportedPreviewFpsRange.

Java documentation for android.hardware.Camera.Parameters.setPreviewFpsRange(int, 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

See also