///
/// JHybridVideoViewViewManagerFactorySpec.cpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

#include "JHybridVideoViewViewManagerFactorySpec.hpp"

// Forward declaration of `HybridVideoViewViewManagerSpec` to properly resolve imports.
namespace margelo::nitro::video { class HybridVideoViewViewManagerSpec; }

#include <memory>
#include "HybridVideoViewViewManagerSpec.hpp"
#include "JHybridVideoViewViewManagerSpec.hpp"

namespace margelo::nitro::video {

  jni::local_ref<JHybridVideoViewViewManagerFactorySpec::jhybriddata> JHybridVideoViewViewManagerFactorySpec::initHybrid(jni::alias_ref<jhybridobject> jThis) {
    return makeCxxInstance(jThis);
  }

  void JHybridVideoViewViewManagerFactorySpec::registerNatives() {
    registerHybrid({
      makeNativeMethod("initHybrid", JHybridVideoViewViewManagerFactorySpec::initHybrid),
    });
  }

  size_t JHybridVideoViewViewManagerFactorySpec::getExternalMemorySize() noexcept {
    static const auto method = javaClassStatic()->getMethod<jlong()>("getMemorySize");
    return method(_javaPart);
  }

  void JHybridVideoViewViewManagerFactorySpec::dispose() noexcept {
    static const auto method = javaClassStatic()->getMethod<void()>("dispose");
    method(_javaPart);
  }

  // Properties
  

  // Methods
  std::shared_ptr<HybridVideoViewViewManagerSpec> JHybridVideoViewViewManagerFactorySpec::createViewManager(double nitroId) {
    static const auto method = javaClassStatic()->getMethod<jni::local_ref<JHybridVideoViewViewManagerSpec::javaobject>(double /* nitroId */)>("createViewManager");
    auto __result = method(_javaPart, nitroId);
    return __result->cthis()->shared_cast<JHybridVideoViewViewManagerSpec>();
  }

} // namespace margelo::nitro::video
