
/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleJniCpp.js
 */

#include "RNReactNativeLocalDownloadSpec.h"

namespace facebook::react {

static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_localDownload(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "localDownload", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_getContentFd(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getContentFd", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_closeFd(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "closeFd", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_persistContentPermission(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "persistContentPermission", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_copyFileSAF(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "copyFileSAF", "(Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

NativeReactNativeLocalDownloadSpecJSI::NativeReactNativeLocalDownloadSpecJSI(const JavaTurboModule::InitParams &params)
  : JavaTurboModule(params) {
  methodMap_["localDownload"] = MethodMetadata {1, __hostFunction_NativeReactNativeLocalDownloadSpecJSI_localDownload};
  methodMap_["getContentFd"] = MethodMetadata {1, __hostFunction_NativeReactNativeLocalDownloadSpecJSI_getContentFd};
  methodMap_["closeFd"] = MethodMetadata {1, __hostFunction_NativeReactNativeLocalDownloadSpecJSI_closeFd};
  methodMap_["persistContentPermission"] = MethodMetadata {1, __hostFunction_NativeReactNativeLocalDownloadSpecJSI_persistContentPermission};
  methodMap_["copyFileSAF"] = MethodMetadata {2, __hostFunction_NativeReactNativeLocalDownloadSpecJSI_copyFileSAF};
}

std::shared_ptr<TurboModule> RNReactNativeLocalDownloadSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
  if (moduleName == "ReactNativeLocalDownload") {
    return std::make_shared<NativeReactNativeLocalDownloadSpecJSI>(params);
  }
  return nullptr;
}

} // namespace facebook::react
