RCTBlobCollector.h 644 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <jsi/jsi.h>
  8. using namespace facebook;
  9. @class RCTBlobManager;
  10. namespace facebook {
  11. namespace react {
  12. class JSI_EXPORT RCTBlobCollector : public jsi::HostObject {
  13. public:
  14. RCTBlobCollector(RCTBlobManager *blobManager, const std::string &blobId);
  15. ~RCTBlobCollector();
  16. static void install(RCTBlobManager *blobManager);
  17. private:
  18. const std::string blobId_;
  19. RCTBlobManager *blobManager_;
  20. };
  21. } // namespace react
  22. } // namespace facebook