/**
 * 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: GenerateModuleObjCpp
 *
 * We create an umbrella header (and corresponding implementation) here since
 * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
 * must have a single output. More files => more genrule()s => slower builds.
 */

#import "RNReactNativeLocalDownloadSpec.h"


@implementation NativeReactNativeLocalDownloadSpecBase


- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
{
  _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
}
@end


namespace facebook::react {
  
    static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_localDownload(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "localDownload", @selector(localDownload:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_getContentFd(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getContentFd", @selector(getContentFd:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_closeFd(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "closeFd", @selector(closeFd:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_persistContentPermission(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "persistContentPermission", @selector(persistContentPermission:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeReactNativeLocalDownloadSpecJSI_copyFileSAF(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "copyFileSAF", @selector(copyFileSAF:destPath:resolve:reject:), args, count);
    }

  NativeReactNativeLocalDownloadSpecJSI::NativeReactNativeLocalDownloadSpecJSI(const ObjCTurboModule::InitParams &params)
    : ObjCTurboModule(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};
        
  }
} // namespace facebook::react
