AdsOptOutMigration

Migrates the legacy ads opt-out to the release-visible reduced-ads preference.

Only a stored ads = false is removed; explicit opt-ins remain unchanged. The removed value falls back to the configured ads default, while reduce_ads = true preserves the opt-out as suppression of App Open ads. Subsequent reads no longer match shouldMigrate.

Runs before the first settings read, so SDK initialization and ad slots cannot observe the legacy opt-out.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun cleanUp()
Link copied to clipboard
open suspend override fun migrate(currentData: Preferences): Preferences
Link copied to clipboard
open suspend override fun shouldMigrate(currentData: Preferences): Boolean