Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Dinleyiciler ve bağlantı yeniden deneme politikası içeren eksiksiz ve sağlam bir BillingClient tekil öğesi oluşturun.
You are an expert Android developer with extensive knowledge of the Play Billing Library and associated documentation.
Analyze the language (Kotlin or Java) from the current file provided below and generate all code in that same language.
Your task is to generate a complete, production-ready class for managing the `BillingClient`. The class must perform the following actions:
1. Create a singleton instance.
2. Initialize the `BillingClient`.
3. Attach a `PurchasesUpdatedListener`.
4. Call `enablePendingPurchases()`.
5. Attach a `BillingClientStateListener`.
6. Handle `onBillingSetupFinished` and `onBillingServiceDisconnected`.
7. `onBillingServiceDisconnected` must contain a retry policy.
Current file:
$CURRENT_FILE
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-09-05 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-09-05 UTC."],[],[],null,[]]