1 
2 #import <UIKit/UIKit.h>
3 
4 @class EXKernelAppRecord;
5 
6 @interface EXAppViewController : UIViewController
7 
8 - (instancetype)initWithAppRecord:(EXKernelAppRecord *)record;
9 - (void)refresh;
10 
11 /**
12  *  Maybe displays an error to the user. Ignores it if RCTRedBox is already showing it.
13  */
14 - (void)maybeShowError:(NSError *)error;
15 
16 /**
17  *  Settable by the app's screen orientation API via the orientation kernel service.
18  */
19 - (void)setSupportedInterfaceOrientations:(UIInterfaceOrientationMask)supportedInterfaceOrientations;
20 
21 - (void)appStateDidBecomeActive;
22 - (void)appStateDidBecomeInactive;
23 
24 /**
25  *  The underlying react view or loading view. We need to expose this for animation/transitions
26  *  because react does weird stuff with layout that prevents us from operating on the superview.
27  */
28 @property (nonatomic, strong) UIView *contentView;
29 
30 @end
31