awaitCustomerInfo
suspend fun Purchases.awaitCustomerInfo(fetchPolicy: CacheFetchPolicy = CacheFetchPolicy.default()): CustomerInfo
Get latest available customer info. Coroutine friendly version of Purchases.getCustomerInfo.
Return
The CustomerInfo associated to the current user.
Parameters
fetchPolicy
Specifies cache behavior for customer info retrieval (optional). Defaults to CacheFetchPolicy.default: CACHED_OR_FETCHED.
Throws
with a PurchasesError if there's an error retrieving the customer info.