react-native-navigation的迁移库

RNNComponentViewController.h 1.8KB

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