android-components / mozilla.components.browser.state.action / WebExtensionAction

WebExtensionAction

sealed class WebExtensionAction : BrowserAction (source)

BrowserAction implementations related to updating BrowserState.extensions and TabSessionState.extensionState.

Types

Name Summary
InstallWebExtensionAction data class InstallWebExtensionAction : WebExtensionAction
Updates BrowserState.extensions to register the given extension as installed.
UninstallWebExtensionAction data class UninstallWebExtensionAction : WebExtensionAction
Removes all state of the uninstalled extension from BrowserState.extensions and TabSessionState.extensionState.
UpdateBrowserAction data class UpdateBrowserAction : WebExtensionAction
Updates a browser action of a given extensionId.
UpdatePageAction data class UpdatePageAction : WebExtensionAction
Updates a page action of a given extensionId.
UpdatePopupSessionAction data class UpdatePopupSessionAction : WebExtensionAction
Keeps track of the last session used to display an extension action popup.
UpdateTabBrowserAction data class UpdateTabBrowserAction : WebExtensionAction
Updates a tab-specific browser action that belongs to the given sessionId and extensionId on the TabSessionState.extensionState.
UpdateTabPageAction data class UpdateTabPageAction : WebExtensionAction
Updates a page action that belongs to the given sessionId and extensionId on the TabSessionState.extensionState.
UpdateWebExtensionAction data class UpdateWebExtensionAction : WebExtensionAction
Updates the given updatedExtension in the BrowserState.extensions.
UpdateWebExtensionEnabledAction data class UpdateWebExtensionEnabledAction : WebExtensionAction
Updates the WebExtensionState.enabled flag.

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
InstallWebExtensionAction data class InstallWebExtensionAction : WebExtensionAction
Updates BrowserState.extensions to register the given extension as installed.
UninstallWebExtensionAction data class UninstallWebExtensionAction : WebExtensionAction
Removes all state of the uninstalled extension from BrowserState.extensions and TabSessionState.extensionState.
UpdateBrowserAction data class UpdateBrowserAction : WebExtensionAction
Updates a browser action of a given extensionId.
UpdatePageAction data class UpdatePageAction : WebExtensionAction
Updates a page action of a given extensionId.
UpdatePopupSessionAction data class UpdatePopupSessionAction : WebExtensionAction
Keeps track of the last session used to display an extension action popup.
UpdateTabBrowserAction data class UpdateTabBrowserAction : WebExtensionAction
Updates a tab-specific browser action that belongs to the given sessionId and extensionId on the TabSessionState.extensionState.
UpdateTabPageAction data class UpdateTabPageAction : WebExtensionAction
Updates a page action that belongs to the given sessionId and extensionId on the TabSessionState.extensionState.
UpdateWebExtensionAction data class UpdateWebExtensionAction : WebExtensionAction
Updates the given updatedExtension in the BrowserState.extensions.
UpdateWebExtensionEnabledAction data class UpdateWebExtensionEnabledAction : WebExtensionAction
Updates the WebExtensionState.enabled flag.