setColorEnhanceOptions abstract method

Future<void> setColorEnhanceOptions(
  1. bool enabled,
  2. ColorEnhanceOptions option
)

Sets color enhancement. The video images captured by the camera can have color distortion. The color enhancement feature intelligently adjusts video characteristics such as saturation and contrast to enhance the video color richness and color reproduction, making the video more vivid. You can call this method to enable the color enhancement feature and set the options of the color enhancement effect. Call this method after calling enableVideo . The color enhancement feature has certain performance requirements on devices. With Color Enhancement turned on, Agora recommends that you change the Color Enhancement Level to one that consumes less performance or turn off Color Enhancement if your device is experiencing severe heat problems.

Param enabled Whether to turn on color enhancement: true: Enable. false: (Default) Disable.

Param option The color enhancement options.

Implementation

Future<void> setColorEnhanceOptions(bool enabled, ColorEnhanceOptions option);