RCTSurfaceDelegate.h 760 B

12345678910111213141516171819202122232425262728293031323334
  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 <UIKit/UIKit.h>
  8. #import <React/RCTSurfaceStage.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class RCTSurface;
  11. @protocol RCTSurfaceDelegate <NSObject>
  12. @optional
  13. /**
  14. * Notifies a receiver that a surface transitioned to a new stage.
  15. * See `RCTSurfaceStage` for more details.
  16. */
  17. - (void)surface:(RCTSurface *)surface didChangeStage:(RCTSurfaceStage)stage;
  18. /**
  19. * Notifies a receiver that root view got a new (intrinsic) size during the last
  20. * layout pass.
  21. */
  22. - (void)surface:(RCTSurface *)surface didChangeIntrinsicSize:(CGSize)intrinsicSize;
  23. @end
  24. NS_ASSUME_NONNULL_END