2021-07-22 15:06:35 +08:00

46 lines
1.3 KiB
Objective-C

// Copyright (C) Egret Technology. All rights reserved.
// EgretRuntimeVersion: 1.1.2
// EgretRuntimeBuild: 24082931
#import <UIKit/UIKit.h>
@interface EgretNativeConfig : NSObject
@property (nonatomic) bool showFPS;
@property (nonatomic) int fpsLogTime;
@property (nonatomic) bool disableNativeRender;
@property (nonatomic) bool enableGLBatch;
@property (nonatomic) bool clearCache;
@property (nonatomic) unsigned long loadingTimeout;
@property (nonatomic) bool transparentGameView;
@property (nonatomic) NSString* preloadPath;
@property (nonatomic) bool useCutout;
@end
@interface EgretNativeIOS : NSObject
- (instancetype)init;
- (UIView*)createEAGLView;
- (bool)initWithViewController:(UIViewController*)viewController;
- (UIViewController*)getRootViewController;
- (NSString*)getRuntimeVersion;
- (void)setOption:(NSString*)value forKey:(NSString*)key;
- (void)startGame:(NSString*)gameUrl;
- (void)pause;
- (void)resume;
- (void)setExternalInterface:(NSString*)funcName Callback:(void(^)(NSString*))callback;
- (void)callExternalInterface:(NSString*)funcName Value:(NSString*)value;
- (void)setFPSBoardEnable:(bool)enable;
- (NSString*)getNetworkState;
- (void)setNetworkStatusChangeCallback:(void(^)(NSString*))callback;
- (void)destroy;
@property (nonatomic, strong) UIWindow* window;
@property (nonatomic, readonly, strong) EgretNativeConfig* config;
@end