android-components / mozilla.components.support.migration / FennecMigrator / Builder / migrateAddons

migrateAddons

fun migrateAddons(engine: Engine, addonCollectionProvider: AddonCollectionProvider, addonUpdater: AddonUpdater, version: Int = Migration.Addons.currentVersion): Builder (source)

Enables Add-on migration.

Parameters

engine - an instance of Engine use to query installed add-ons.

addonCollectionProvider - an instace of AddonCollectionProvider to query supported add-ons.

version - Version of the migration; defaults to the current version.