setBeautyEffectOptions abstract method

Future<void> setBeautyEffectOptions({
  1. required bool enabled,
  2. required BeautyOptions options,
  3. MediaSourceType type = MediaSourceType.primaryCameraSource,
})

Sets the image enhancement options.

Enables or disables image enhancement, and sets the options. Call this method after calling enableVideo or startPreview. This method relies on the image enhancement dynamic library libagora_clear_vision_extension.dll. If the dynamic library is deleted, the function cannot be enabled normally. This feature has high requirements on device performance. When calling this method, the SDK automatically checks the capabilities of the current device.

  • enabled Whether to enable the image enhancement function: true : Enable the image enhancement function. false : (Default) Disable the image enhancement function.
  • options The image enhancement options. See BeautyOptions.
  • type Source type of the extension. See MediaSourceType.

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> setBeautyEffectOptions(
    {required bool enabled,
    required BeautyOptions options,
    MediaSourceType type = MediaSourceType.primaryCameraSource});