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

#pragma once

#include <NitroModules/JHybridObject.hpp>
#include <fbjni/fbjni.h>
#include "HybridVideoViewViewManagerFactorySpec.hpp"




namespace margelo::nitro::video {

  using namespace facebook;

  class JHybridVideoViewViewManagerFactorySpec: public jni::HybridClass<JHybridVideoViewViewManagerFactorySpec, JHybridObject>,
                                                public virtual HybridVideoViewViewManagerFactorySpec {
  public:
    static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/video/HybridVideoViewViewManagerFactorySpec;";
    static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jhybridobject> jThis);
    static void registerNatives();

  protected:
    // C++ constructor (called from Java via `initHybrid()`)
    explicit JHybridVideoViewViewManagerFactorySpec(jni::alias_ref<jhybridobject> jThis) :
      HybridObject(HybridVideoViewViewManagerFactorySpec::TAG),
      HybridBase(jThis),
      _javaPart(jni::make_global(jThis)) {}

  public:
    ~JHybridVideoViewViewManagerFactorySpec() override {
      // Hermes GC can destroy JS objects on a non-JNI Thread.
      jni::ThreadScope::WithClassLoader([&] { _javaPart.reset(); });
    }

  public:
    size_t getExternalMemorySize() noexcept override;
    void dispose() noexcept override;

  public:
    inline const jni::global_ref<JHybridVideoViewViewManagerFactorySpec::javaobject>& getJavaPart() const noexcept {
      return _javaPart;
    }

  public:
    // Properties
    

  public:
    // Methods
    std::shared_ptr<HybridVideoViewViewManagerSpec> createViewManager(double nitroId) override;

  private:
    friend HybridBase;
    using HybridBase::HybridBase;
    jni::global_ref<JHybridVideoViewViewManagerFactorySpec::javaobject> _javaPart;
  };

} // namespace margelo::nitro::video
