enablePortraitSegmentationBackgroundBlur method Null safety

Future<void> enablePortraitSegmentationBackgroundBlur(
  1. bool enable
)

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

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

Precautions: Use after initializing ZegoEffects.

Applicable version: >= 2.1.0

Implementation

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