setLowLightAdjusted method
@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
FutureOr<int> setLowLightAdjusted(ByteRTCVideoEnhancementMode mode) async {
return await nativeCall('setLowLightAdjusted:', [mode.$value]);
}