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

AddonsProvider

interface AddonsProvider (source)

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

Functions

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.

Inheritors

Name Summary
AddonCollectionProvider class AddonCollectionProvider : AddonsProvider
Provide access to the collections AMO API. https://addons-server.readthedocs.io/en/latest/topics/api/collections.html