ios_setVideoEffectExpressionDetect method

Future<int?> ios_setVideoEffectExpressionDetect(
  1. ByteRTCExpressionDetectConfig config
)

@platform ios @hidden for internal use only @detail api @author zhushufan.ref @brief Sets the configuration for video effects expression detection. @param config Expression detection configuration. See ByteRTCExpressionDetectConfig{@link #ByteRTCExpressionDetectConfig}. @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?> ios_setVideoEffectExpressionDetect(
    $p_i.ByteRTCExpressionDetectConfig config) async {
  $() => ($instance as $p_i.ByteRTCVideoEffect)
      .setVideoEffectExpressionDetect(config);

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