2018-06-22 14:28:38 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-06-22 14:28:38 +00:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
2018-09-07 22:55:05 +00:00
|
|
|
#include <memory>
|
2018-06-22 14:28:38 +00:00
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Represents retrieved image bitmap and any assotiated platform-specific info.
|
|
|
|
*/
|
|
|
|
class ImageResponse final {
|
|
|
|
|
|
|
|
public:
|
|
|
|
ImageResponse(const std::shared_ptr<void> &image);
|
|
|
|
|
|
|
|
std::shared_ptr<void> getImage() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::shared_ptr<void> image_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|