rememberPurchaseStatus

A composable that provides the current purchase status.

This can be used to conditionally show or hide ads based on user purchase status.

The status is not frozen at first composition: it is re-read from BillingConfig.getPurchaseProvider whenever the lifecycle reaches ON_RESUME (e.g. returning from a purchase flow) and on every recomposition, so a mid-session purchase is picked up without recreating the composition.

Return

true if the user has purchased the app (ads should be disabled), false otherwise