[android-components](../../../index.md) / [mozilla.components.support.migration](../../index.md) / [FennecMigrator](../index.md) / [Builder](index.md) / [migrateAddons](./migrate-addons.md)

# migrateAddons

`fun migrateAddons(engine: `[`Engine`](../../../mozilla.components.concept.engine/-engine/index.md)`, addonCollectionProvider: `[`AddonCollectionProvider`](../../../mozilla.components.feature.addons.amo/-addon-collection-provider/index.md)`, addonUpdater: `[`AddonUpdater`](../../../mozilla.components.feature.addons.update/-addon-updater/index.md)`, version: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = Migration.Addons.currentVersion): `[`Builder`](index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/migration/src/main/java/mozilla/components/support/migration/FennecMigrator.kt#L400)

Enables Add-on migration.

### Parameters

`engine` - an instance of [Engine](../../../mozilla.components.concept.engine/-engine/index.md) use to query installed add-ons.

`addonCollectionProvider` - an instace of [AddonCollectionProvider](../../../mozilla.components.feature.addons.amo/-addon-collection-provider/index.md) to query supported add-ons.

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