enablePortraitSegmentationBackground method Null safety

Future<void> enablePortraitSegmentationBackground(
  1. bool enable
)

Enable portrait segmentation. Enabling portrait segmentation will disable custom background and mosaic background functions.

bool enable - Whether to enable portrait segmentation. Passing true enables it, and passing false disables it.

Precautions: Use after initializing ZegoEffects.

Applicable version: >= 2.1.0

Implementation

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