setPortraitSegmentationBackgroundMosaicParam method Null safety
- ZegoEffectsMosaicParam param
Set the parameters for the portrait segmentation mosaic background effect. Ensure to call this method after enabling the mosaic background effect to set the appropriate mosaic effect parameters.
ZegoEffectsMosaicParam param - The parameter configuration for the mosaic effect, including intensity and type information. For specific parameter definitions, refer to the ZegoEffectsMosaicParam
class.
Precautions: Use after initializing ZegoEffects.
Applicable version: >= 2.1.0
Implementation
Future<void> setPortraitSegmentationBackgroundMosaicParam(ZegoEffectsMosaicParam param) async {
return await _channel.invokeMethod('setPortraitSegmentationBackgroundMosaicParam', {'intensity': param.intensity, 'type': param.type.index});
}