performRestoreWithCompletion
abstract fun performRestoreWithCompletion(customerInfo: CustomerInfo, completion: (PurchaseLogicResult) -> Unit)
Restores previously completed purchases for the given customer with a completion callback.
If restoration is successful, syncPurchases
will automatically be called by RevenueCat to update our database. However, if you are using Amazon's store, you must call syncAmazonPurchase
in your code.
Parameters
customerInfo
An object containing information about the customer.
completion
A callback function that receives a PurchaseLogicResult
object containing the outcome of the restoration process.