react-native-navigation的迁移库

RNNCommandsHandler.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import "RNNControllerFactory.h"
  4. #import "RNNStore.h"
  5. @interface RNNCommandsHandler : NSObject
  6. -(instancetype) initWithStore:(RNNStore*)store controllerFactory:(RNNControllerFactory*)controllerFactory;
  7. -(void) setRoot:(NSDictionary*)layout completion:(RNNTransitionCompletionBlock)completion;
  8. -(void) mergeOptions:(NSString*)componentId options:(NSDictionary*)options completion:(RNNTransitionCompletionBlock)completion;
  9. -(void) setDefaultOptions:(NSDictionary*)options completion:(RNNTransitionCompletionBlock)completion;
  10. -(void) push:(NSString*)componentId layout:(NSDictionary*)layout completion:(RNNTransitionCompletionBlock)completion;
  11. -(void) pop:(NSString*)componentId options:(NSDictionary*)options completion:(RNNTransitionCompletionBlock)completion;
  12. -(void) popTo:(NSString*)componentId completion:(RNNTransitionCompletionBlock)completion;
  13. -(void) popToRoot:(NSString*)componentId completion:(RNNTransitionCompletionBlock)completion;
  14. -(void)setStackRoot:(NSString*)componentId layout:(NSDictionary*)layout completion:(RNNTransitionCompletionBlock)completion;
  15. -(void) showModal:(NSDictionary*)layout completion:(RNNTransitionCompletionBlock)completion;
  16. -(void) dismissModal:(NSString*)componentId completion:(RNNTransitionCompletionBlock)completion;
  17. -(void) dismissAllModalsWithCompletion:(RNNTransitionCompletionBlock)completion;
  18. -(void)showOverlay:(NSDictionary *)layout completion:(RNNTransitionCompletionBlock)completion;
  19. -(void)dismissOverlay:(NSString*)componentId completion:(RNNTransitionCompletionBlock)completion;
  20. @end