Interface PaywallListener
public interface PaywallListener
Receives what happens on a paywall. Every method is called on the EDT.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclosed()The paywall was closed: by the customer, or by itself after a completed purchase or restore whenPaywall.show(Offering, PaywallListener)showed it.voidThe paywall was closed after a purchase was started and before the cloud confirmed it.voidThe cloud confirmed the purchase: the customer now owns the product of the package.voidThe customer pressed the purchase button and the store was asked to sell the package.voidrestoreCompleted(CustomerInfo info) The customer information changed after the customer asked to restore purchases.
-
Method Details
-
purchaseStarted
The customer pressed the purchase button and the store was asked to sell the package.
Parameters
pkg: the package being bought
-
purchaseCompleted
The cloud confirmed the purchase: the customer now owns the product of the package. A paywall shown by
Paywall.show(Offering, PaywallListener)has already returned to the form it was shown over; aPaywallViewin a form of the application is still showing.Parameters
info: the customer information that includes the purchase
-
purchaseCancelled
void purchaseCancelled()The paywall was closed after a purchase was started and before the cloud confirmed it. -
restoreCompleted
The customer information changed after the customer asked to restore purchases. A paywall shown by
Paywall.show(Offering, PaywallListener)has already returned to the form it was shown over.Parameters
info: the customer information after the restore
-
closed
void closed()The paywall was closed: by the customer, or by itself after a completed purchase or restore whenPaywall.show(Offering, PaywallListener)showed it.
-