UNPKG

741 Btext/x-cView Raw
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
8#pragma once
9
10#include <memory>
11
12#include <react/imagemanager/ImageRequest.h>
13#include <react/imagemanager/primitives.h>
14
15namespace facebook {
16namespace react {
17
18class ImageManager;
19
20using SharedImageManager = std::shared_ptr<ImageManager>;
21
22/*
23 * Cross platform facade for iOS-specific RCTImageManager.
24 */
25class ImageManager {
26 public:
27 ImageManager(void *platformSpecificCounterpart);
28 ~ImageManager();
29
30 ImageRequest requestImage(const ImageSource &imageSource) const;
31
32 private:
33 void *self_;
34};
35
36} // namespace react
37} // namespace facebook