// // FrameHostObject.h // VisionCamera // // Created by Marc Rousavy on 22.03.21. // Copyright © 2021 mrousavy. All rights reserved. // #pragma once #import #import #import "Frame.h" using namespace facebook; class JSI_EXPORT FrameHostObject: public jsi::HostObject { public: explicit FrameHostObject(Frame* frame): frame(frame) {} ~FrameHostObject(); public: jsi::Value get(jsi::Runtime&, const jsi::PropNameID& name) override; std::vector getPropertyNames(jsi::Runtime& rt) override; void close(); public: Frame* frame; private: void assertIsFrameStrong(jsi::Runtime& runtime, const std::string& accessedPropName); };