1*3217e243SBen Roth 2*3217e243SBen Roth #import <UIKit/UIKit.h> 3*3217e243SBen Roth 4*3217e243SBen Roth @class EXKernelAppRecord; 5*3217e243SBen Roth 6*3217e243SBen Roth @interface EXAppViewController : UIViewController 7*3217e243SBen Roth 8*3217e243SBen Roth - (instancetype)initWithAppRecord:(EXKernelAppRecord *)record; 9*3217e243SBen Roth - (void)refresh; 10*3217e243SBen Roth 11*3217e243SBen Roth /** 12*3217e243SBen Roth * Maybe displays an error to the user. Ignores it if RCTRedBox is already showing it. 13*3217e243SBen Roth */ 14*3217e243SBen Roth - (void)maybeShowError:(NSError *)error; 15*3217e243SBen Roth 16*3217e243SBen Roth /** 17*3217e243SBen Roth * Settable by the app's screen orientation API via the orientation kernel service. 18*3217e243SBen Roth */ 19*3217e243SBen Roth - (void)setSupportedInterfaceOrientations:(UIInterfaceOrientationMask)supportedInterfaceOrientations; 20*3217e243SBen Roth 21*3217e243SBen Roth - (void)appDidBecomeVisible; 22*3217e243SBen Roth - (void)appDidBackground; 23*3217e243SBen Roth 24*3217e243SBen Roth @end 25