setPortraitSegmentationBackgroundPath method Null safety

Future<void> setPortraitSegmentationBackgroundPath(
  1. String imgPath,
  2. ZegoEffectsScaleMode mode
)

Set the custom background image path for portrait segmentation.

String imgPath - The local image resource path. ZegoEffectsScaleMode mode - The image scaling mode.

Precautions: Use after initializing ZegoEffects.

Applicable version: >= 2.1.0

Implementation

Future<void> setPortraitSegmentationBackgroundPath(String imgPath, ZegoEffectsScaleMode mode) async {
  return await _channel.invokeMethod('setPortraitSegmentationBackgroundPath', {'path': imgPath, 'mode': mode.index});
}