1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #import "RNNLayoutNode.h"
- #import "RNNRootViewCreator.h"
- #import "RNNEventEmitter.h"
- #import "RNNNavigationOptions.h"
- #import "RNNAnimator.h"
- #import "RNNUIBarButtonItem.h"
- #import "RNNLayoutInfo.h"
- #import "RNNLeafProtocol.h"
- #import "RNNViewControllerPresenter.h"
-
- typedef void (^PreviewCallback)(UIViewController *vc);
-
- @interface RNNRootViewController : UIViewController <RNNLeafProtocol, UIViewControllerPreviewingDelegate, UISearchResultsUpdating, UISearchBarDelegate, UINavigationControllerDelegate, UISplitViewControllerDelegate>
-
- @property (nonatomic, strong) RNNEventEmitter *eventEmitter;
- @property (nonatomic, retain) RNNLayoutInfo* layoutInfo;
- @property (nonatomic, strong) RNNViewControllerPresenter* presenter;
- @property (nonatomic, strong) RNNNavigationOptions* options;
-
- @property (nonatomic) id<RNNRootViewCreator> creator;
- @property (nonatomic, strong) RNNAnimator* animator;
- @property (nonatomic, strong) UIViewController* previewController;
- @property (nonatomic, copy) PreviewCallback previewCallback;
-
- - (instancetype)initWithLayoutInfo:(RNNLayoutInfo *)layoutInfo
- rootViewCreator:(id<RNNRootViewCreator>)creator
- eventEmitter:(RNNEventEmitter*)eventEmitter
- presenter:(RNNViewControllerPresenter *)presenter
- options:(RNNNavigationOptions *)options;
-
- - (instancetype)initExternalComponentWithLayoutInfo:(RNNLayoutInfo *)layoutInfo
- eventEmitter:(RNNEventEmitter*)eventEmitter
- presenter:(RNNViewControllerPresenter *)presenter
- options:(RNNNavigationOptions *)options;
-
- - (BOOL)isExternalViewController;
- - (BOOL)isCustomTransitioned;
-
- -(void)onButtonPress:(RNNUIBarButtonItem *)barButtonItem;
-
- @end
|