react-native-navigation的迁移库

RNNRootViewController.h 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #import "RNNLayoutNode.h"
  2. #import "RNNRootViewCreator.h"
  3. #import "RNNEventEmitter.h"
  4. #import "RNNNavigationOptions.h"
  5. #import "RNNAnimator.h"
  6. #import "RNNUIBarButtonItem.h"
  7. #import "RNNLayoutInfo.h"
  8. #import "RNNLeafProtocol.h"
  9. #import "RNNLayoutProtocol.h"
  10. #import "RNNViewControllerPresenter.h"
  11. typedef void (^PreviewCallback)(UIViewController *vc);
  12. @interface RNNRootViewController : UIViewController <RNNLeafProtocol, RNNLayoutProtocol, UIViewControllerPreviewingDelegate, UISearchResultsUpdating, UISearchBarDelegate, UINavigationControllerDelegate, UISplitViewControllerDelegate>
  13. @property (nonatomic, strong) RNNEventEmitter *eventEmitter;
  14. @property (nonatomic, retain) RNNLayoutInfo* layoutInfo;
  15. @property (nonatomic, strong) RNNViewControllerPresenter* presenter;
  16. @property (nonatomic, strong) RNNNavigationOptions* options;
  17. @property (nonatomic, strong) RNNNavigationOptions* defaultOptions;
  18. @property (nonatomic) id<RNNRootViewCreator> creator;
  19. @property (nonatomic, strong) RNNAnimator* animator;
  20. @property (nonatomic, strong) UIViewController* previewController;
  21. @property (nonatomic, copy) PreviewCallback previewCallback;
  22. - (instancetype)initWithLayoutInfo:(RNNLayoutInfo *)layoutInfo
  23. rootViewCreator:(id<RNNRootViewCreator>)creator
  24. eventEmitter:(RNNEventEmitter*)eventEmitter
  25. presenter:(RNNViewControllerPresenter *)presenter
  26. options:(RNNNavigationOptions *)options
  27. defaultOptions:(RNNNavigationOptions *)defaultOptions;
  28. - (instancetype)initExternalComponentWithLayoutInfo:(RNNLayoutInfo *)layoutInfo
  29. eventEmitter:(RNNEventEmitter*)eventEmitter
  30. presenter:(RNNViewControllerPresenter *)presenter
  31. options:(RNNNavigationOptions *)options
  32. defaultOptions:(RNNNavigationOptions *)defaultOptions;
  33. - (BOOL)isExternalViewController;
  34. - (void)onButtonPress:(RNNUIBarButtonItem *)barButtonItem;
  35. @end