isCameraZoomSupported method

Future<bool?> isCameraZoomSupported()

@detail api @author zhangzhenyu.samuel @brief 检测当前使用的摄像头(前置/后置),是否支持变焦(数码/光学变焦)。 @return - true: 支持 - false: 不支持 @note 必须已调用 startVideoCapture{@link #RTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集时,才能检测摄像头变焦能力。

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}');
  }
}