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


@implementation NativePipSpecBase


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

@implementation RCTCxxConvert (NativePip_PipConfigAspectRatio)
+ (RCTManagedPointer *)JS_NativePip_PipConfigAspectRatio:(id)json
{
  return facebook::react::managedPointer<JS::NativePip::PipConfigAspectRatio>(json);
}
@end
@implementation RCTCxxConvert (NativePip_PipConfig)
+ (RCTManagedPointer *)JS_NativePip_PipConfig:(id)json
{
  return facebook::react::managedPointer<JS::NativePip::PipConfig>(json);
}
@end
namespace facebook::react {
  
    static facebook::jsi::Value __hostFunction_NativePipSpecJSI_isPipSupported(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "isPipSupported", @selector(isPipSupported:reject:), args, count);
    }

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

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

    static facebook::jsi::Value __hostFunction_NativePipSpecJSI_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_NativePipSpecJSI_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);
    }

  NativePipSpecJSI::NativePipSpecJSI(const ObjCTurboModule::InitParams &params)
    : ObjCTurboModule(params) {
      
        methodMap_["isPipSupported"] = MethodMetadata {0, __hostFunction_NativePipSpecJSI_isPipSupported};
        
        
        methodMap_["enterPictureInPicture"] = MethodMetadata {1, __hostFunction_NativePipSpecJSI_enterPictureInPicture};
        setMethodArgConversionSelector(@"enterPictureInPicture", 0, @"JS_NativePip_PipConfig:");
        
        methodMap_["exitPictureInPicture"] = MethodMetadata {0, __hostFunction_NativePipSpecJSI_exitPictureInPicture};
        
        
        methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativePipSpecJSI_addListener};
        
        
        methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativePipSpecJSI_removeListeners};
        
  }
} // namespace facebook::react
