awaitCustomerInfo

suspend fun Purchases.awaitCustomerInfo(fetchPolicy: <Error class: unknown class> = CacheFetchPolicy.default()): <Error class: unknown class>

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

PurchasesException

with a PurchasesError if there's an error retrieving the customer info.