I need to make some actions after closing the Play Billing Library dialog, but I don't see any methods to do it. Any idead?
Is there a way to listen when Play Billing Library dialog was closed?
377 Views Asked by Dyno Cris At
2
I need to make some actions after closing the Play Billing Library dialog, but I don't see any methods to do it. Any idead?
If I have understood correctly, every time the billing flow is launched and afterwards the dialog is closed, you wanna run some code accordingly. if so, every time the dialog is closed, there is a reason. maybe it has been canceled by the user, an error occurred or maybe the purchase was complete and successful. In all of these cases the
onPurchasesUpdated()
is triggered with a specificBillingResponseCode
which you can check and run your code accordingly. here is a list of all the possible response codes.