/**
 * 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 "RNVoiceToTextSpec.h"


@implementation NativeVoiceToTextSpecBase


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


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

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

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

    static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeVoiceToTextSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count);
    }

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

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

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

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

  NativeVoiceToTextSpecJSI::NativeVoiceToTextSpecJSI(const ObjCTurboModule::InitParams &params)
    : ObjCTurboModule(params) {
      
        methodMap_["startListening"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_startListening};
        
        
        methodMap_["stopListening"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_stopListening};
        
        
        methodMap_["destroy"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_destroy};
        
        
        methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeVoiceToTextSpecJSI_addListener};
        
        
        methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeVoiceToTextSpecJSI_removeListeners};
        
        
        methodMap_["getRecognitionLanguage"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_getRecognitionLanguage};
        
        
        methodMap_["setRecognitionLanguage"] = MethodMetadata {1, __hostFunction_NativeVoiceToTextSpecJSI_setRecognitionLanguage};
        
        
        methodMap_["isRecognitionAvailable"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_isRecognitionAvailable};
        
        
        methodMap_["getSupportedLanguages"] = MethodMetadata {0, __hostFunction_NativeVoiceToTextSpecJSI_getSupportedLanguages};
        
  }
} // namespace facebook::react
