/**
 * 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: GenerateModuleCpp.js
 */

#include "UnimpSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_initialize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->initialize(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
    count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt))
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_isInitialize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->isInitialize(
    rt
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_getAppBasePath(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->getAppBasePath(
    rt,
    count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt))
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_releaseWgtToRunPath(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->releaseWgtToRunPath(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt)),
    count <= 2 || args[2].isUndefined() ? std::nullopt : std::make_optional(args[2].asString(rt))
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_isExistsApp(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->isExistsApp(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_getWgtPath(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->getWgtPath(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_openUniMP(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->openUniMP(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt))
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_closeUniMP(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->closeUniMP(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_showOrHideUniMP(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->showOrHideUniMP(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_sendUniMPEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->sendUniMPEvent(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
    count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt)
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_getAppVersionInfo(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->getAppVersionInfo(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_getCurrentPageUrl(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->getCurrentPageUrl(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_getUniMPRunPathWithAppid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->getUniMPRunPathWithAppid(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_getResourceFilePath(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->getResourceFilePath(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_setDefMenuButtonClickCallBack(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->setDefMenuButtonClickCallBack(
    rt
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_setUniMPOnCloseCallBack(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->setUniMPOnCloseCallBack(
    rt
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_setCapsuleCloseButtonClickCallBack(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->setCapsuleCloseButtonClickCallBack(
    rt
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeUnimpCxxSpecJSI_setOnUniMPEventCallBack(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeUnimpCxxSpecJSI *>(&turboModule)->setOnUniMPEventCallBack(
    rt
  );
  return jsi::Value::undefined();
}

NativeUnimpCxxSpecJSI::NativeUnimpCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("Unimp", jsInvoker) {
  methodMap_["initialize"] = MethodMetadata {2, __hostFunction_NativeUnimpCxxSpecJSI_initialize};
  methodMap_["isInitialize"] = MethodMetadata {0, __hostFunction_NativeUnimpCxxSpecJSI_isInitialize};
  methodMap_["getAppBasePath"] = MethodMetadata {1, __hostFunction_NativeUnimpCxxSpecJSI_getAppBasePath};
  methodMap_["releaseWgtToRunPath"] = MethodMetadata {3, __hostFunction_NativeUnimpCxxSpecJSI_releaseWgtToRunPath};
  methodMap_["isExistsApp"] = MethodMetadata {1, __hostFunction_NativeUnimpCxxSpecJSI_isExistsApp};
  methodMap_["getWgtPath"] = MethodMetadata {1, __hostFunction_NativeUnimpCxxSpecJSI_getWgtPath};
  methodMap_["openUniMP"] = MethodMetadata {2, __hostFunction_NativeUnimpCxxSpecJSI_openUniMP};
  methodMap_["closeUniMP"] = MethodMetadata {1, __hostFunction_NativeUnimpCxxSpecJSI_closeUniMP};
  methodMap_["showOrHideUniMP"] = MethodMetadata {2, __hostFunction_NativeUnimpCxxSpecJSI_showOrHideUniMP};
  methodMap_["sendUniMPEvent"] = MethodMetadata {3, __hostFunction_NativeUnimpCxxSpecJSI_sendUniMPEvent};
  methodMap_["getAppVersionInfo"] = MethodMetadata {1, __hostFunction_NativeUnimpCxxSpecJSI_getAppVersionInfo};
  methodMap_["getCurrentPageUrl"] = MethodMetadata {1, __hostFunction_NativeUnimpCxxSpecJSI_getCurrentPageUrl};
  methodMap_["getUniMPRunPathWithAppid"] = MethodMetadata {1, __hostFunction_NativeUnimpCxxSpecJSI_getUniMPRunPathWithAppid};
  methodMap_["getResourceFilePath"] = MethodMetadata {1, __hostFunction_NativeUnimpCxxSpecJSI_getResourceFilePath};
  methodMap_["setDefMenuButtonClickCallBack"] = MethodMetadata {0, __hostFunction_NativeUnimpCxxSpecJSI_setDefMenuButtonClickCallBack};
  methodMap_["setUniMPOnCloseCallBack"] = MethodMetadata {0, __hostFunction_NativeUnimpCxxSpecJSI_setUniMPOnCloseCallBack};
  methodMap_["setCapsuleCloseButtonClickCallBack"] = MethodMetadata {0, __hostFunction_NativeUnimpCxxSpecJSI_setCapsuleCloseButtonClickCallBack};
  methodMap_["setOnUniMPEventCallBack"] = MethodMetadata {0, __hostFunction_NativeUnimpCxxSpecJSI_setOnUniMPEventCallBack};
}


} // namespace facebook::react
