// // Created by Marc on 19/06/2021. // #pragma once #include #include #include #include #include #include #include "java-bindings/JFrame.h" namespace vision { using namespace facebook; class JSI_EXPORT FrameHostObject : public jsi::HostObject { explicit FrameHostObject(const jni::alias_ref& frame); public: ~FrameHostObject(); public: jsi::Value get(jsi::Runtime &, const jsi::PropNameID &name) override; std::vector getPropertyNames(jsi::Runtime &rt) override; public: jni::global_ref frame; private: static auto constexpr TAG = "VisionCamera"; size_t _refCount; std::mutex _refCountMutex; }; } // namespace vision