You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
flutter_cocos_view_pod/cocos_view_pod/Classes/dcocos_bridge.h

32 lines
1.0 KiB

//
// dcocos_bridge.h
// dcocos_bridge
//
// Created by gem on 29/8/2024.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface dcocos_bridge : NSObject
+ (dcocos_bridge *)instance;
/**
Configures Cocos2d-x search paths by using the previously set custom resource path.
If no custom path has been set, it defaults to @"/hhhh".
*/
- (void)configureCocos2dSearchPaths:(NSString *)customResourcePath;
;
- (void)initPlatform;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
- (void)applicationWillResignActive:(UIApplication *)application;
- (void)applicationDidBecomeActive:(UIApplication *)application;
- (void)applicationWillTerminate:(UIApplication *)application;
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;
- (UIView *)getCocosView;
- (void)setCocosView:(UIView *)view;
- (float)getCocosPixelRatio;
+ (void)callS:(NSString *)funcName args:(NSString *)args;
@end