DefaultAdsPreferencesDataSource
class DefaultAdsPreferencesDataSource(dataStore: DataStore<Preferences>, dispatchers: DispatcherProvider, val defaultAdsEnabled: Boolean) : AdsPreferencesDataSource(source)
Ads preference stored in the shared settings Preferences DataStore.
Owns the single eagerly started adsEnabled StateFlow. Constructing this class more than once per process starts a second collector over the same preference, so it is registered as a singleton and reached through the graph rather than built on demand.
Constructors
Link copied to clipboard
constructor(dataStore: DataStore<Preferences>, dispatchers: DispatcherProvider, defaultAdsEnabled: Boolean)