13217e243SBen Roth 
23217e243SBen Roth #import <UIKit/UIKit.h>
33217e243SBen Roth 
43217e243SBen Roth @class EXKernelAppRecord;
53217e243SBen Roth 
63217e243SBen Roth @interface EXAppViewController : UIViewController
73217e243SBen Roth 
83217e243SBen Roth - (instancetype)initWithAppRecord:(EXKernelAppRecord *)record;
93217e243SBen Roth - (void)refresh;
103217e243SBen Roth 
113217e243SBen Roth /**
123217e243SBen Roth  *  Maybe displays an error to the user. Ignores it if RCTRedBox is already showing it.
133217e243SBen Roth  */
143217e243SBen Roth - (void)maybeShowError:(NSError *)error;
153217e243SBen Roth 
163217e243SBen Roth /**
173217e243SBen Roth  *  Settable by the app's screen orientation API via the orientation kernel service.
183217e243SBen Roth  */
193217e243SBen Roth - (void)setSupportedInterfaceOrientations:(UIInterfaceOrientationMask)supportedInterfaceOrientations;
203217e243SBen Roth 
21*e7ac6e4fSBen Roth - (void)appStateDidBecomeActive;
22*e7ac6e4fSBen Roth - (void)appStateDidBecomeInactive;
233217e243SBen Roth 
243217e243SBen Roth @end
25