hostile-takeover/game/sdl/ios/iphone.h
2016-08-24 16:42:47 -04:00

22 lines
825 B
Objective-C

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class Webview;
@class InputController;
@class ChatView;
@interface IPhone : NSObject <UIApplicationDelegate>
@property (strong, nonatomic) Webview *webView;
@property (strong, nonatomic) InputController *inputController;
@property (strong, nonatomic) ChatView *chatView;
- (void)initiateWebView:(NSString *)url title:(NSString *)title;
- (void)initiateAsk:(NSString *)title maxCharacters:(int)max defaultString:(NSString *)string keyboard:(int)keyboard secure:(BOOL)secure;
- (NSString *)askString;
- (wi::IChatController *)getChatController;
+ (void)presentViewController:(UIViewController* )viewController animated:(BOOL)animated completion:(void (^)(void))completion;
+ (void)presentView:(UIView *)view;
- (void)forceDeviceIntoLandscape;
- (int)deviceOS;
@end