DefaultBillingRepository
Process-scoped Play Billing implementation.
The repository owns one BillingClient, reconnects with bounded retries, replays the latest product query, and emits purchase outcomes as one-off events. One-time donations are consumed and subscriptions are acknowledged. Unsettled purchases of both types are recovered on initial connection and later reconnects.
Use getInstance rather than constructing a second callback/listener graph.
Properties
Products resolved by queryProductDetails, keyed by product id.
Outcome of each purchase attempt, including failures reported by the Play Billing library.
Functions
Starts the purchase flow for a one-time product such as a donation.
Starts the purchase flow for a subscription.
Play Billing answers through its own callbacks, so the queries need no dispatcher switch.
Play Billing answers through its own callbacks, so the query needs no dispatcher switch.