enableEffectBeauty abstract method

Future<int?> enableEffectBeauty(
  1. bool enable
)

Enables/Disables basic beauty effects.

enable: Whether to enable basic beauty effects.

  • true: Enables basic beauty effects.
  • false: (Default) Disables basic beauty effects.

Returned value:

  • 0: Success.
  • –1000: The Effect SDK is not integrated.
  • –1001: This API is not available for your current RTC SDK.
  • –1002: This API is not available for your current Effect SDK. You can upgrade your Effect SDK to v4.4.2+.
  • –1003: Contact our technical support team for further instructions.
  • –1004: Downloading related resources. The beauty effects will take effect after downloading.
  • <0: Failure. Effect SDK internal error. For specific error code, see Error Code Table.

Notes:

  • You cannot use the basic beauty effects and the advanced effect features at the same time. See how to use advanced effect features for more information.
  • You need to integrate Effect SDK before calling this API. Effect SDK v4.4.2+ is recommended.
  • Call RTCVideo.setBeautyIntensity to set the beauty effect intensity. If you do not set the intensity before calling this API, the default intensity will be enabled. The default values for the intensity of each beauty mode are as follows: 0.7 for brightening, 0.8 for smoothing, 0.5 for sharpening, and 0.7 for clarity.
  • This API is not applicable to screen capturing.

Implementation

Future<int?> enableEffectBeauty(bool enable);