logOutWith

fun Purchases.logOutWith(onError: (<Error class: unknown class>) -> Unit = ON_ERROR_STUB, onSuccess: (<Error class: unknown class>) -> Unit)

Logs out 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 if there was an error with the purchase.