android-components / mozilla.components.feature.addons / AddonsProvider


interface AddonsProvider (source)

A contract that indicate how an add-on provider must behave.


Name Summary
getAvailableAddons abstract suspend fun getAvailableAddons(allowCache: Boolean = true): List<Addon>
Provides a list of all available add-ons.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.


Name Summary
AddonCollectionProvider class AddonCollectionProvider : AddonsProvider
Provide access to the collections AMO API.