Onboarding Paywall
fun OnboardingPaywall(pages: List<BenefitPage>, plans: List<PaywallPlan>, legal: PaywallLegal, onPurchase: (PaywallPlan) -> Unit, onRestore: () -> Unit, onClose: () -> Unit, modifier: Modifier = Modifier, plansTitle: String = stringResource(R.string.pw_onboarding_plans_title), plansSubtitle: String? = stringResource(R.string.pw_onboarding_plans_subtitle), initialPlanId: String? = null, pagerState: PagerState = rememberPagerState { pages.size + 1 })(source)
Design 6, onboarding-end paywall: a short carousel of benefit pages that ends in the plan selection. Use it as the last step of onboarding. The legal footer appears on the plan page, where purchase becomes possible.
Parameters
pages
benefit pages shown before the plans. Three or four work best.
See also
for the shared parameters.