purchases / com.revenuecat.purchases / resetWith

resetWith

fun Purchases.resetWith(onError: ErrorFunction = onErrorStub, onSuccess: ReceivePurchaserInfoSuccessFunction): Unit

Resets the Purchases client clearing the save appUserID. This will generate a random user id and save it in the cache.

Parameters

onSuccess - Will be called after the call has completed.

onError - Will be called after the call has completed with an error.