InApps C++
Public Member Functions
ludei::inapps::InAppPurchaseObserver Class Referenceabstract

Public Member Functions

virtual void purchaseStarted (InAppService *service, const string &productId)=0
 
virtual void purchaseFailed (InAppService *service, const string &productId, const InAppService::Error &error)=0
 
virtual void purchaseCompleted (InAppService *service, const InAppPurchase &purchase)=0
 

Detailed Description

Allows to listen to different events regarding the purchasing process.

Member Function Documentation

virtual void ludei::inapps::InAppPurchaseObserver::purchaseCompleted ( InAppService service,
const InAppPurchase purchase 
)
pure virtual

Triggered when the purchasing proccess is completed successfully.

Parameters
serviceThe service.
purchaseThe purchase information.
virtual void ludei::inapps::InAppPurchaseObserver::purchaseFailed ( InAppService service,
const string &  productId,
const InAppService::Error error 
)
pure virtual

Triggered when the purchasing process has faild.

Parameters
serviceThe service.
productIdThe id of the product.
errorThe reported error description.
virtual void ludei::inapps::InAppPurchaseObserver::purchaseStarted ( InAppService service,
const string &  productId 
)
pure virtual

Triggered when the purchasing process has started.

Parameters
serviceThe service.
productIdThe id of the product.

The documentation for this class was generated from the following file: