ImageEventEmitter.h 615 B

12345678910111213141516171819202122232425262728
  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. #pragma once
  8. #include <react/components/view/ViewEventEmitter.h>
  9. namespace facebook {
  10. namespace react {
  11. class ImageEventEmitter : public ViewEventEmitter {
  12. public:
  13. using ViewEventEmitter::ViewEventEmitter;
  14. void onLoadStart() const;
  15. void onLoad() const;
  16. void onLoadEnd() const;
  17. void onProgress(double) const;
  18. void onError() const;
  19. void onPartialLoad() const;
  20. };
  21. } // namespace react
  22. } // namespace facebook