main 0.1.15
gem 2 months ago
parent 2bf1721fd4
commit 7a572ff1f3
  1. 2
      cocos_view_pod.podspec
  2. 15
      cocos_view_pod/Classes/dcocos_bridge.h

@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'cocos_view_pod'
s.version = '0.1.14'
s.version = '0.1.15'
s.summary = 'A short description of cocos_view_pod.'
# This description is used to generate tags and improve search results.

@ -10,15 +10,26 @@
@interface dcocos_bridge : NSObject
+ (dcocos_bridge *)instance;
/**
Sets the custom resource directory path.
@param path The custom path string (e.g., @"/customFolder") that will be appended to the Documents directory.
*/
- (void)setCustomResourcePath:(NSString *)path;
/**
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;
- (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;
- (UIView *)getCocosView;
- (void)setCocosView:(UIView *)view;
- (float)getCocosPixelRatio;
+ (void)callS:(NSString *)funcName args:(NSString *)args;

Loading…
Cancel
Save