getCameraZoomMaxRatio method

Future<float?> getCameraZoomMaxRatio()

@detail api @author zhangzhenyu.samuel @brief Get the maximum zoom factor of the currently used camera (front/postcondition) @return Maximum zoom factor @note You must have called startVideoCapture{@link #RTCEngine#startVideoCapture} using the SDK internal capture module for video capture, the maximum zoom factor of the camera can be detected.

Implementation

Future<float?> getCameraZoomMaxRatio() async {
  $a() => ($instance as $p_a.RTCEngine).getCameraZoomMaxRatio();
  $i() => ($instance as $p_i.ByteRTCEngine).getCameraZoomMaxRatio();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}