disableFaceDetection method

Future<int?> disableFaceDetection()

@detail api @author wangjunlin.3182 @brief 关闭人脸识别功能。 @return - 0: 调用成功。 - –1000: 未集成特效 SDK。 - –1001: 特效 SDK 不支持该功能。 - –1002: 特效 SDK 版本不兼容。 - < 0: 调用失败,错误码对应具体描述参看 错误码表

Implementation

Future<int?> disableFaceDetection() async {
  $a() => ($instance as $p_a.IVideoEffect).disableFaceDetection();
  $i() => ($instance as $p_i.ByteRTCVideoEffect).disableFaceDetection();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}