react-native-navigation的迁移库

RNNBasePresenter.h 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #import "RNNNavigationOptions.h"
  2. #import "RNNReactComponentRegistry.h"
  3. typedef void (^RNNReactViewReadyCompletionBlock)(void);
  4. @interface RNNBasePresenter : NSObject
  5. @property(nonatomic, weak, setter=bindViewController:) UIViewController* boundViewController;
  6. @property(nonatomic, strong) NSString *boundComponentId;
  7. @property(nonatomic, strong) RNNNavigationOptions* defaultOptions;
  8. @property(nonatomic, strong) RNNReactComponentRegistry* componentRegistry;
  9. - (instancetype)initWithDefaultOptions:(RNNNavigationOptions *)defaultOptions;
  10. - (instancetype)initWithComponentRegistry:(RNNReactComponentRegistry *)componentRegistry defaultOptions:(RNNNavigationOptions *)defaultOptions;
  11. - (void)setDefaultOptions:(RNNNavigationOptions *)defaultOptions;
  12. - (void)applyOptionsOnInit:(RNNNavigationOptions *)initialOptions;
  13. - (void)applyOptionsOnViewDidLayoutSubviews:(RNNNavigationOptions *)options;
  14. - (void)applyOptions:(RNNNavigationOptions *)options;
  15. - (void)applyOptionsOnWillMoveToParentViewController:(RNNNavigationOptions *)options;
  16. - (void)applyDotIndicator:(UIViewController *)child;
  17. - (void)mergeOptions:(RNNNavigationOptions *)options resolvedOptions:(RNNNavigationOptions *)resolvedOptions;
  18. - (void)renderComponents:(RNNNavigationOptions *)options perform:(RNNReactViewReadyCompletionBlock)readyBlock;
  19. - (void)viewDidLayoutSubviews;
  20. - (void)componentDidAppear;
  21. - (void)componentDidDisappear;
  22. - (UIStatusBarStyle)getStatusBarStyle:(RNNNavigationOptions *)resolvedOptions;
  23. - (UIInterfaceOrientationMask)getOrientation:(RNNNavigationOptions *)options;
  24. - (BOOL)isStatusBarVisibility:(UINavigationController *)stack resolvedOptions:(RNNNavigationOptions *)resolvedOptions;
  25. @end