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

Package mozilla.components.feature.addons.ui

Types

Name Summary
AddonInstallationDialogFragment class AddonInstallationDialogFragment : AppCompatDialogFragment
A dialog that shows Addon installation confirmation.
AddonPermissionsAdapter class AddonPermissionsAdapter : Adapter<ViewHolder>
An adapter for displaying the permissions of an add-on.
AddonsManagerAdapter class AddonsManagerAdapter : ListAdapter<Any, CustomViewHolder>
An adapter for displaying add-on items. This will display information related to the state of an add-on such as recommended, unsupported or installed. In addition, it will perform actions such as installing an add-on.
AddonsManagerAdapterDelegate interface AddonsManagerAdapterDelegate
Provides methods for handling the add-on items in the add-on manager.
CustomViewHolder sealed class CustomViewHolder : ViewHolder
A base view holder.
PermissionsDialogFragment class PermissionsDialogFragment : AppCompatDialogFragment
A dialog that shows a set of permission required by an Addon.
UnsupportedAddonsAdapter class UnsupportedAddonsAdapter : Adapter<ViewHolder>
An adapter for displaying unsupported add-on items.
UnsupportedAddonsAdapterDelegate interface UnsupportedAddonsAdapterDelegate
Provides methods for handling the success and error callbacks from uninstalling an add-on in the list of unsupported add-on items.

Properties

Name Summary
createdAtDate val Addon.createdAtDate: Date
The date the add-on was created, as a JVM date object.
translatedDescription val Addon.translatedDescription: String
A shortcut to get the localized description of an add-on.
translatedName val Addon.translatedName: String
A shortcut to get the localized name of an add-on.
translatedSummary val Addon.translatedSummary: String
A shortcut to get the localized summary of an add-on.
updatedAtDate val Addon.updatedAtDate: Date
The date of the last time the add-on was updated by its developer(s), as a JVM date object.

Functions

Name Summary
showInformationDialog fun UpdateAttempt.showInformationDialog(context: <ERROR CLASS>): Unit
Shows a dialog containing all the information related to the given AddonUpdater.UpdateAttempt.
toLocalizedString fun Status?.toLocalizedString(context: <ERROR CLASS>): String
Get the localized string for an AddonUpdater.UpdateAttempt.status.