#ifndef LYWSDKInterfaceProtocol_h
#define LYWSDKInterfaceProtocol_h
#include "LYWSDKCallBackListener.h"
class LYWSDKInterfaceProtocol
{
private:
LYWSDKCallBackListener *m_listener;
public:
// 初始化接口
virtual void initSDK(LYWSDKCallBackListener *listener, const char* funcName, const char* param){};
// 接受回调函数
virtual void receiveCallBack(int type, int code, const char* callBackJsonMessage);
// 调用方法函数
virtual void callFunctionWithParam(const char* funcName, const char* param){};
};
#endif
#define LYWSDKInterfaceProtocol_h
#include "LYWSDKCallBackListener.h"
class LYWSDKInterfaceProtocol
{
private:
LYWSDKCallBackListener *m_listener;
public:
// 初始化接口
virtual void initSDK(LYWSDKCallBackListener *listener, const char* funcName, const char* param){};
// 接受回调函数
virtual void receiveCallBack(int type, int code, const char* callBackJsonMessage);
// 调用方法函数
virtual void callFunctionWithParam(const char* funcName, const char* param){};
};
#endif
本文介绍了一个名为LYWSDKInterfaceProtocol的类,该类定义了SDK接口的基本操作,包括初始化接口、接收回调函数和调用方法等核心功能。

被折叠的 条评论
为什么被折叠?



