12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // IAPDelegate.hpp
- // TileManor
- //
- // Created by 徐炼新 on 2024/9/30.
- //
- #ifndef IAPDelegate_hpp
- #define IAPDelegate_hpp
- #include <cocos2d.h>
- #include "IAPDefine.hpp"
- class IAPDelegate {
- public:
- virtual ~IAPDelegate(){}
-
- // 设置设备等级通知
- virtual void setDeviceLevel(int leval) = 0;
-
- // 用户成功购买通知
- virtual void onUserBuySuccess(std::string commodityID) = 0;
-
- // 添加商店版位通知
- virtual bool addAPlacement(const iap::IAPPlacement& plInfo) = 0;
-
- // 删除商店版位通知
- virtual void removePlacement(const std::string& id) = 0;
-
- // 清除用户购买信息通知
- virtual void clearUserBuyInfo() = 0;
-
-
- };
- #endif /* IAPDelegate_hpp */
|