IAPDelegate.hpp 754 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // IAPDelegate.hpp
  3. // TileManor
  4. //
  5. // Created by 徐炼新 on 2024/9/30.
  6. //
  7. #ifndef IAPDelegate_hpp
  8. #define IAPDelegate_hpp
  9. #include <cocos2d.h>
  10. #include "IAPDefine.hpp"
  11. class IAPDelegate {
  12. public:
  13. virtual ~IAPDelegate(){}
  14. // 设置设备等级通知
  15. virtual void setDeviceLevel(int leval) = 0;
  16. // 用户成功购买通知
  17. virtual void onUserBuySuccess(std::string commodityID) = 0;
  18. // 添加商店版位通知
  19. virtual bool addAPlacement(const iap::IAPPlacement& plInfo) = 0;
  20. // 删除商店版位通知
  21. virtual void removePlacement(const std::string& id) = 0;
  22. // 清除用户购买信息通知
  23. virtual void clearUserBuyInfo() = 0;
  24. };
  25. #endif /* IAPDelegate_hpp */