MountingTransactionMetadata.h 842 B

12345678910111213141516171819202122232425262728293031
  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/mounting/MountingTelemetry.h>
  9. #include <react/mounting/MountingTransaction.h>
  10. namespace facebook {
  11. namespace react {
  12. /*
  13. * Contains all (meta)information related to a MountingTransaction except a list
  14. * of mutation instructions.
  15. * The class is meant to be used when a consumer should not have access to all
  16. * information about the transaction (incapsulation) but still needs to observe
  17. * it to produce some side-effects.
  18. */
  19. class MountingTransactionMetadata final {
  20. public:
  21. SurfaceId surfaceId;
  22. MountingTransaction::Number number;
  23. MountingTelemetry telemetry;
  24. };
  25. } // namespace react
  26. } // namespace facebook