Called when a user navigates back on Android
If you return true
, the paywall view will be closed.
We strongly recommend to return true
in this case.
true
Called when a user taps the close button on the paywall view
If you return true
, the paywall view will be closed.
We strongly recommend to return true
in this case.
true
Called if a product list fails to load on a presented view, for example, if there is no internet connection
If you return true
from this callback, the paywall view will be closed.
AdaptyError object with error code and message
Called when a user taps the product in the paywall view
If you return true
from this callback, the paywall view will be closed.
Called when the purchase succeeds, the user cancels their purchase, or the purchase appears to be pending
If you return true
from this callback, the paywall view will be closed.
We strongly recommend returning purchaseResult.type !== 'user_cancelled'
in this case.
object, which provides details about the purchase.
If the result is 'success'
, it also includes the updated user's profile.
purchaseResult.type !== 'user_cancelled'
Called if a purchase fails after a user taps the purchase button
If you return true
from this callback, the paywall view will be closed.
AdaptyError object with error code and message
Called when a user taps the purchase button in the paywall view
If you return true
from this callback, the paywall view will be closed.
Called if a paywall view fails to render. This should not ever happen, but if it does, feel free to report it to us.
If you return true
from this callback, the paywall view will be closed.
AdaptyError object with error code and message
Called when a purchase is completed
If you return true
from this callback, the paywall view will be closed.
We strongly recommend to return true
in this case.
updated user profile
true
Called if a restore fails after a user taps the restore button
If you return true
from this callback, the paywall view will be closed.
AdaptyError object with error code and message
Called when a user taps the restore button in the paywall view
If you return true
from this callback, the paywall view will be closed.
Generated using TypeDoc
Hashmap of possible events to their callbacks
See
[DOC] Handling View Events