setPreviewFpsRange method

Future<void> setPreviewFpsRange({
  1. required int min,
  2. required int max,
})

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.

min: the minimum preview fps (scaled by 1000). max: the maximum preview fps (scaled by 1000).

Throws a PlatformException if fps range is invalid.

Implementation

Future<void> setPreviewFpsRange({required int min, required int max}) {
  return _channel.$setPreviewFpsRange(this, min, max);
}