restorePurchases

fun restorePurchases(onRestored: (Boolean, String) -> Unit = { _, _ -> })

Restoring purchases is a mechanism by which your user can restore their in-app purchases, reactivating any content that had previously been purchased from the same store account

Parameters

onRestored

Unit if the answer is correct, a boolean with the subscription status and the id of the corresponding product will be returned in the unit.

See also