ios_setLowLightAdjusted method

Future<int?> ios_setLowLightAdjusted(
  1. ByteRTCVideoEnhancementMode mode
)

@platform ios @hidden(iOS) @valid since 3.57 @detail api @hiddensdk(audiosdk) @author zhoubohui @brief Sets the video lowlight enhancement mode.
It can significantly improve image quality in scenarios with insufficient light, contrast lighting, or backlit situations. @param mode It defaults to Disable. Refer to ByteRTCVideoEnhancementMode{@link #ByteRTCVideoEnhancementMode} for more details. @return - 0: Success. After you call this method, it will take action immediately. But it may require some time for downloads and detection processes before you can see the enhancement. - < 0: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note - Turning on this mode will impact device performance. This feature should be activated only when required and the device performance is adequate. - Functionality applies to videos captured by the internal module as well as those from custom collections.

Implementation

Future<int?> ios_setLowLightAdjusted(
    $p_i.ByteRTCVideoEnhancementMode mode) async {
  $() => ($instance as $p_i.ByteRTCEngine).setLowLightAdjusted(mode);

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