enablePortraitSegmentationBackgroundMosaic method Null safety

Future<void> enablePortraitSegmentationBackgroundMosaic(
  1. bool enable
)

Enable portrait segmentation with a mosaic background effect. Enabling a mosaic background will disable custom background and blur background functions.

bool enable - Whether to enable portrait segmentation with a mosaic background effect. Passing true enables it, and passing false disables it.

Precautions: Use after initializing ZegoEffects.

Applicable version: >= 2.1.0

Implementation

Future<void> enablePortraitSegmentationBackgroundMosaic(bool enable) async {
  return await _channel.invokeMethod('enablePortraitSegmentationBackgroundMosaic', {'enable': enable});
}