setCameraZoomRatio method

int setCameraZoomRatio(
  1. double ratio
)
override

Setting the Camera Zoom Ratio (for Mobile OS)

  • Parameters:
    • zoomRatio(double):
      • Value range: 1-5.
        • 1 indicates the widest angle of view (original).
        • 5 indicates the narrowest angle of view (zoomed in).
      • The maximum value is recommended to be 5. If the value exceeds 5, the video will become blurred.

Implementation

int setCameraZoomRatio(double ratio) {
  if (_only_support_mobile) {
    return _deviceFFIBindings.set_camera_zoom_ratio(_nativePointer, ratio);
  } else {
    debugPrint("device-manager-api not support");
    return -1;
  }
}