setBeautyEffectOptions abstract method
Future<void>
setBeautyEffectOptions({
- required bool enabled,
- required BeautyOptions options,
- MediaSourceType type = MediaSourceType.primaryCameraSource,
Sets the image enhancement options.
Enables or disables image enhancement, and sets the options.
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
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> setBeautyEffectOptions(
{required bool enabled,
required BeautyOptions options,
MediaSourceType type = MediaSourceType.primaryCameraSource});