AdaptySDK 4.1.1
Loading...
Searching...
No Matches
AdaptySDK.IAdaptyEventListener Interface Reference

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.

Detailed Description

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.

Member Function Documentation

◆ OnInstallationDetailsFail()

void AdaptySDK.IAdaptyEventListener.OnInstallationDetailsFail ( AdaptyError error)

Called when installation details retrieval fails.

Parameters
errorThe AdaptyError object describing the error.

◆ OnInstallationDetailsSuccess()

void AdaptySDK.IAdaptyEventListener.OnInstallationDetailsSuccess ( AdaptyInstallationDetails details)

Called when installation details are successfully retrieved.

Parameters
detailsThe AdaptyInstallationDetails object containing installation information.

◆ OnLoadLatestProfile()

void AdaptySDK.IAdaptyEventListener.OnLoadLatestProfile ( AdaptyProfile profile)

Called when the latest profile is loaded.

Parameters
profileThe updated AdaptyProfile object.

◆ OnReceivePromotedPurchase()

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.

Parameters
productThe AdaptyPromotedProduct the user chose.

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