isCameraExposurePositionSupported method

Future<bool?> isCameraExposurePositionSupported()

@detail api @author zhangzhenyu.samuel @brief Checks if manual exposure setting 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?> isCameraExposurePositionSupported() async {
  $a() => ($instance as $p_a.RTCEngine).isCameraExposurePositionSupported();
  $i() =>
      ($instance as $p_i.ByteRTCEngine).isCameraExposurePositionSupported();

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