|
AdaptySDK 4.1.1
|
Interface for listening to Adapty SDK events. More...
Public Member Functions | |
| void | OnLoadLatestProfile (AdaptyProfile profile) |
| Called when the latest profile is loaded. | |
| void | OnReceivePromotedPurchase (AdaptyPromotedProduct product) |
| Called when the user starts a promoted in-app purchase from the App Store product page. iOS only. | |
| void | OnInstallationDetailsSuccess (AdaptyInstallationDetails details) |
| Called when installation details are successfully retrieved. | |
| void | OnInstallationDetailsFail (AdaptyError error) |
| Called when installation details retrieval fails. | |
Interface for listening to Adapty SDK events.
Implement this interface to receive notifications about profile updates and installation details. Use Adapty.SetEventListener(IAdaptyEventListener) to register your listener.
| void AdaptySDK.IAdaptyEventListener.OnInstallationDetailsFail | ( | AdaptyError | error | ) |
Called when installation details retrieval fails.
| error | The AdaptyError object describing the error. |
| void AdaptySDK.IAdaptyEventListener.OnInstallationDetailsSuccess | ( | AdaptyInstallationDetails | details | ) |
Called when installation details are successfully retrieved.
| details | The AdaptyInstallationDetails object containing installation information. |
| void AdaptySDK.IAdaptyEventListener.OnLoadLatestProfile | ( | AdaptyProfile | profile | ) |
Called when the latest profile is loaded.
| profile | The updated AdaptyProfile object. |
| void AdaptySDK.IAdaptyEventListener.OnReceivePromotedPurchase | ( | AdaptyPromotedProduct | product | ) |
Called when the user starts a promoted in-app purchase from the App Store product page. iOS only.
Complete the purchase by passing the product to Adapty.MakePromotedPurchase(AdaptyPromotedProduct, System.Action<AdaptyPurchaseResult, AdaptyError>). The event is the purchase: leaving it unhandled drops a purchase the user started.
| product | The AdaptyPromotedProduct the user chose. |