android-components / mozilla.components.feature.toolbar / WebExtensionToolbarAction

WebExtensionToolbarAction

open class WebExtensionToolbarAction : Action (source)

An action button that represents an web extension item to be added to the toolbar.

Parameters

action - Associated WebExtensionBrowserAction

listener - Callback that will be invoked whenever the button is pressed

Constructors

Name Summary
<init> WebExtensionToolbarAction(action: WebExtensionBrowserAction, padding: Padding? = null, iconJobDispatcher: CoroutineDispatcher, listener: () -> Unit)
An action button that represents an web extension item to be added to the toolbar.

Inherited Properties

Name Summary
visible open val visible: () -> Boolean

Functions

Name Summary
bind open fun bind(view: <ERROR CLASS>): Unit
createView open fun createView(parent: <ERROR CLASS>): <ERROR CLASS>

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.