2025-07-28 14:26:19 +08:00

35 lines
649 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @Author: Gongxh
* @Date: 2025-03-21
* @Description:
*/
#pragma once
#include "cocos/cocos.h"
namespace KunpoSDK {
class SDKHelper {
public:
/** 单例 */
static SDKHelper * getInstance();
SDKHelper();
/** 获取系统信息 */
void getSystemInfo();
/** 获取版本号 */
std::string getVersionCode();
/** 获取build号 */
int getBuildCode();
/**
* c++ 回调 js
* 参数jsonString 格式 { function: string, args: string }
*/
void callJS(const char* jsonString);
private:
};
}