Смена темы
SDK поддерживает динамическую смены темы через интерфейс провайдера BillingClientThemeProvider:
val billingClient: RuStoreBillingClient = RuStoreBillingClientFactory.create( context = app, consoleApplicationId = "111111" , deeplinkScheme = "yourappscheme" , themeProvider? = BillingClientThemeProviderImpl(), ) class BillingClientThemeProviderImpl: BillingClientThemeProvider { override fun provide(): BillingClientTheme { // Тут должна размещаться логика по проверке установленной темы val darkTheme = .... if (darkTheme){ BillingClientTheme.Dark } else { BillingClientTheme.Light } } } |
Обновлено 13 сентября 2023 г.
Was this information helpful?