getOfferingsWith

fun Purchases.getOfferingsWith(onError: (error: PurchasesError) -> Unit = ON_ERROR_STUB, onSuccess: (offerings: Offerings) -> Unit)

Fetch the configured offerings for this users. Offerings allows you to configure your in-app products vis RevenueCat and greatly simplifies management. See the guide for more info.

Offerings will be fetched and cached on instantiation so that, by the time they are needed, your prices are loaded for your purchase flow. Time is money.

Parameters

onSuccess

Called when offerings are available. Called immediately if offerings are cached.

onError

Will be called after an error fetching offerings.

Sources

Link copied to clipboard