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


@implementation NativeSimcardInfoSpecBase
- (void)emitOnAirplaneModeChange:(BOOL)value
{
  _eventEmitterCallback("onAirplaneModeChange", [NSNumber numberWithBool:value]);
}
- (void)emitOnSIMCardStateChange:(NSArray<id<NSObject>> *)value
{
  _eventEmitterCallback("onSIMCardStateChange", value);
}

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  NativeSimcardInfoSpecJSI::NativeSimcardInfoSpecJSI(const ObjCTurboModule::InitParams &params)
    : ObjCTurboModule(params) {
      
        methodMap_["getSubscriptionIds"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getSubscriptionIds};
        
        
        methodMap_["getSubscriptionId"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_getSubscriptionId};
        
        
        methodMap_["getActiveDataSubscriptionId"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getActiveDataSubscriptionId};
        
        
        methodMap_["getActiveSubscriptionInfo"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_getActiveSubscriptionInfo};
        
        
        methodMap_["getActiveSubscriptionInfoCount"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getActiveSubscriptionInfoCount};
        
        
        methodMap_["getActiveSubscriptionInfoForSimSlotIndex"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_getActiveSubscriptionInfoForSimSlotIndex};
        
        
        methodMap_["getActiveSubscriptionInfoList"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getActiveSubscriptionInfoList};
        
        
        methodMap_["getAllSubscriptionInfoList"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getAllSubscriptionInfoList};
        
        
        methodMap_["getCompleteActiveSubscriptionInfoList"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getCompleteActiveSubscriptionInfoList};
        
        
        methodMap_["getDefaultDataSubscriptionId"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getDefaultDataSubscriptionId};
        
        
        methodMap_["getDefaultSmsSubscriptionId"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getDefaultSmsSubscriptionId};
        
        
        methodMap_["getDefaultSubscriptionId"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getDefaultSubscriptionId};
        
        
        methodMap_["getSlotIndex"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_getSlotIndex};
        
        
        methodMap_["getNoOfSIMSlotAvailable"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getNoOfSIMSlotAvailable};
        
        
        methodMap_["getSignalStrength"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_getSignalStrength};
        
        
        methodMap_["getPhoneNumber"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_getPhoneNumber};
        
        
        methodMap_["getAllPhoneNumbers"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_getAllPhoneNumbers};
        
        
        methodMap_["getSubscriberIdForPhoneNumber"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_getSubscriberIdForPhoneNumber};
        
        
        methodMap_["isActiveSubscriptionId"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_isActiveSubscriptionId};
        
        
        methodMap_["isNetworkRoaming"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_isNetworkRoaming};
        
        
        methodMap_["isAirplaneMode"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_isAirplaneMode};
        
        
        methodMap_["isESIM"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_isESIM};
        
        
        methodMap_["isMobileDataEnabled"] = MethodMetadata {1, __hostFunction_NativeSimcardInfoSpecJSI_isMobileDataEnabled};
        
        
        methodMap_["addOnAirplaneChangeListener"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_addOnAirplaneChangeListener};
        
        
        methodMap_["addOnSimCardStateChangeListener"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_addOnSimCardStateChangeListener};
        
        
        methodMap_["removeOnAirplaneChangeListener"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_removeOnAirplaneChangeListener};
        
        
        methodMap_["removeOnSimCardStateChangeListener"] = MethodMetadata {0, __hostFunction_NativeSimcardInfoSpecJSI_removeOnSimCardStateChangeListener};
        
        eventEmitterMap_["onAirplaneModeChange"] = std::make_shared<AsyncEventEmitter<id>>();
        eventEmitterMap_["onSIMCardStateChange"] = std::make_shared<AsyncEventEmitter<id>>();
        setEventEmitterCallback([&](const std::string &name, id value) {
          static_cast<AsyncEventEmitter<id> &>(*eventEmitterMap_[name]).emit(value);
        });
  }
} // namespace facebook::react
