onPurchaseResult

abstract fun onPurchaseResult(result: Premium.State)

Reports the result of the purchase, and when the premium status changes.

Can be invoked in the following cases:

  • When launch the billing flow, this function is invoked at the end of the flow to report the result.

  • When the status of a pending transaction changes, it is invoked to report the result.