disableFaceDetection method

Future<int?> disableFaceDetection()

@detail api @author wangjunlin.3182 @brief Stops face detection. @return - 0: Success. - –1000: The Effects SDK is not integrated. - –1001: This API is unavailable for your Effects SDK. - –1002: Your Effects SDK's version is incompatible. - < 0: Other error. See error code table for specific instructions.

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}');
  }
}