isCameraZoomSupported method

Future<bool?> isCameraZoomSupported()

@detail api @author zhangzhenyu.samuel @brief Detect whether the currently used camera (front/postcondition) supports zoom (digital/optical zoom). @return - true: Support - false: Not supported @note Camera zoom capability can only be detected if startVideoCapture{@link #RTCEngine#startVideoCapture} is used for video capture using the SDK internal capture module.

Implementation

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

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