DevToolsExtensionEventType enum
Supported events that can be sent and received over 'postMessage' between DevTools and a DevTools extension running in an embedded iFrame.
Values
- ping → const DevToolsExtensionEventType
-
An event DevTools will send to an extension to verify that the extension is ready for use.
const DevToolsExtensionEventType(ExtensionEventDirection.toExtension)
- pong → const DevToolsExtensionEventType
-
An event that an extension will send back to DevTools after receiving a ping event.
const DevToolsExtensionEventType(ExtensionEventDirection.toDevTools)
- forceReload → const DevToolsExtensionEventType
-
An event that DevTools will send to an extension to force the extension iFrame to reload.
const DevToolsExtensionEventType(ExtensionEventDirection.toExtension)
- vmServiceConnection → const DevToolsExtensionEventType
-
An event that DevTools will send to an extension to notify of the connected vm service uri.
const DevToolsExtensionEventType(ExtensionEventDirection.bidirectional)
- themeUpdate → const DevToolsExtensionEventType
-
An event that DevTools will send to an extension to notify of changes to the active DevTools theme (light or dark).
const DevToolsExtensionEventType(ExtensionEventDirection.toExtension)
- showNotification → const DevToolsExtensionEventType
-
An event that an extension can send to DevTools asking DevTools to post a notification to the DevTools global
notificationService
.const DevToolsExtensionEventType(ExtensionEventDirection.toDevTools)
- showBannerMessage → const DevToolsExtensionEventType
-
An event that an extension can send to DevTools asking DevTools to post a banner message to the extension screen using the global
bannerMessages
.const DevToolsExtensionEventType(ExtensionEventDirection.toDevTools)
- copyToClipboard → const DevToolsExtensionEventType
-
An event that an extension can send to DevTools asking DevTools to copy some content to the user's clipboard.
It is preferred that extensions send this event to DevTools to copy text instead of calling
Clipboard.setData
directly because DevTools contains additional logic for copying text from within an IDE-embedded web view. This scenario will occur when a user is using a DevTools extension from within their IDE.const DevToolsExtensionEventType(ExtensionEventDirection.toDevTools)
- unknown → const DevToolsExtensionEventType
-
Any unrecognized event that is not one of the above supported event types.
const DevToolsExtensionEventType(ExtensionEventDirection.bidirectional)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
supportedForDirection(
ExtensionEventDirection direction) → bool -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
from(
String name) → DevToolsExtensionEventType
Constants
-
values
→ const List<
DevToolsExtensionEventType> - A constant List of the values in this enum, in order of their declaration.