setLowlightEnhanceOptions abstract method
Future<void>
setLowlightEnhanceOptions({
- required bool enabled,
- required LowlightEnhanceOptions options,
- MediaSourceType type = MediaSourceType.primaryCameraSource,
Sets low-light enhancement.
You can call this method to enable the color enhancement feature and set the options of the color enhancement effect.
enabled
Whether to enable low-light enhancement: true : Enable low-light enhancement. false : (Default) Disable low-light enhancement.options
The low-light enhancement options. See LowlightEnhanceOptions.type
The type of the media source to which the filter effect is applied. See MediaSourceType. In this method, this parameter supports only the following two settings: Use the default value primaryCameraSource if you use camera to capture local video. Set this parameter to customVideoSource if you use custom video source.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.
Implementation
Future<void> setLowlightEnhanceOptions(
{required bool enabled,
required LowlightEnhanceOptions options,
MediaSourceType type = MediaSourceType.primaryCameraSource});