enablePortraitSegmentationBackground method

Future<void> enablePortraitSegmentationBackground(
  1. bool enable
)

启用人像分割功能。

@param {boolean} enable - 是否启用人像分割功能。传入 true 表示启用,传入 false 表示禁用。

@note 启用人像分割功能将禁用自定义背景和马赛克背景。

Implementation

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