setBeautyIntensity abstract method

Future<int?> setBeautyIntensity({
  1. required EffectBeautyMode beautyMode,
  2. required double intensity,
})

Sets the beauty effect intensity.

The intensity must be within the range of [0,1].
When you set it to 0, the beauty effect will be turned off. The default value is 0.5.

Returned value:

  • 0: Success.
  • 1000: The Effect SDK is not integrated.
  • 1001: This API is not available in your Effect SDK.
  • <0: Other errors. See Error Code Table.

Notes

  • If you call this API before calling RTCVideo.enableEffectBeauty, the default settings of beauty effect intensity will adjust accordingly.
  • After the engine is destroyed, the beauty effect settings will be invalid.

Implementation

Future<int?> setBeautyIntensity({
  required EffectBeautyMode beautyMode,
  required double intensity,
});