isCameraFocusPositionSupported method

Future<bool?> isCameraFocusPositionSupported()

@detail api @author zhangzhenyu.samuel @brief Checks if manual focus is available for the currently used camera. @return - true: Available. - false: Unavailable. @note You must call startVideoCapture{@link #RTCEngine#startVideoCapture} to start SDK internal video capturing before calling this API.

Implementation

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

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