ExtensionsApi class
Defines commands and events for browser extensions.
Constructors
- ExtensionsApi(Client _client)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearStorageItems(
String id, StorageArea storageArea) → Future< void> -
Clears extension storage in the given
storageArea
.id
ID of extension.storageArea
StorageArea to remove data from. -
getStorageItems(
String id, StorageArea storageArea, {List< String> ? keys}) → Future<Map< String, dynamic> > -
Gets data from extension storage in the given
storageArea
. Ifkeys
is specified, these are used to filter the result.id
ID of extension.storageArea
StorageArea to retrieve data from.keys
Keys to retrieve. -
loadUnpacked(
String path) → Future< String> -
Installs an unpacked extension from the filesystem similar to
--load-extension CLI flags. Returns extension ID once the extension
has been installed. Available if the client is connected using the
--remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
flag is set.
path
Absolute file path. Returns: Extension id. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeStorageItems(
String id, StorageArea storageArea, List< String> keys) → Future<void> -
Removes
keys
from extension storage in the givenstorageArea
.id
ID of extension.storageArea
StorageArea to remove data from.keys
Keys to remove. -
setStorageItems(
String id, StorageArea storageArea, Map< String, dynamic> values) → Future<void> -
Sets
values
in extension storage in the givenstorageArea
. The providedvalues
will be merged with existing values in the storage area.id
ID of extension.storageArea
StorageArea to set data in.values
Values to set. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited