Interface InstallExtensionCallback.Params

Enclosing interface:
InstallExtensionCallback

public static interface InstallExtensionCallback.Params
The parameters of the InstallExtensionCallback.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns the absolute path to the CRX file the extension is about to be installed from.
    default String
    Returns the ID of the extension to install.
    default String
    Returns the name of the extension to install.
    default String
    Returns the version of the extension to install.
    default List<String>
    Returns an immutable list of the hosts that the extension requests access to.
    Returns an immutable list of the required extension permissions.
  • Method Details

    • extensionId

      default String extensionId()
      Returns the ID of the extension to install.
    • extensionName

      default String extensionName()
      Returns the name of the extension to install.
    • extensionVersion

      default String extensionVersion()
      Returns the version of the extension to install.
    • extensionCrxFile

      default String extensionCrxFile()
      Returns the absolute path to the CRX file the extension is about to be installed from.

      The file will be automatically deleted after the installation is completed or canceled. You can make a copy of the CRX file and store it for future use. For example, you can use the file to pack the extension into the application bundle and install it programmatically using Extensions.install(java.nio.file.Path).

    • hosts

      default List<String> hosts()
      Returns an immutable list of the hosts that the extension requests access to.

      The values are represented in the form of matches pattern.

      Please note, that values are being processed by engine and might be not equal to the extension manifest values. For example, some slashes and wildcards could be added.

    • permissions

      default List<ExtensionPermission> permissions()
      Returns an immutable list of the required extension permissions.