# Events namespace

# Classes

Class Description
Abstract (opens new window) Abstract class for an event.
BlockBase (opens new window) Abstract class for any event related to blocks.
BlockChange (opens new window) Notifies listeners when some element of a block has changed (e.g. field values, comments, etc).
BlockCreate (opens new window) Notifies listeners when a block (or connected stack of blocks) is created.
BlockDelete (opens new window) Notifies listeners when a block (or connected stack of blocks) is deleted.
BlockDrag (opens new window) Notifies listeners when a block is being manually dragged/dropped.
BlockMove (opens new window) Notifies listeners when a block is moved. This could be from one connection to another, or from one location on the workspace to another.
BubbleOpen (opens new window) Class for a bubble open event.
Click (opens new window) Notifies listeners that ome blockly element was clicked.
CommentBase (opens new window) Abstract class for a comment event.
CommentChange (opens new window) Notifies listeners that the contents of a workspace comment has changed.
CommentCreate (opens new window) Notifies listeners that a workspace comment was created.
CommentDelete (opens new window) Notifies listeners that a workspace comment has been deleted.
CommentMove (opens new window) Notifies listeners that a workspace comment has moved.
FinishedLoading (opens new window) Notifies listeners when the workspace has finished deserializing from JSON/XML.
MarkerMove (opens new window) Notifies listeners that a marker (used for keyboard navigation) has moved.
Selected (opens new window) Class for a selected event. Notifies listeners that a new element has been selected.
ThemeChange (opens new window) Notifies listeners that the workspace theme has changed.
ToolboxItemSelect (opens new window) Notifies listeners that a toolbox item has been selected.
TrashcanOpen (opens new window) Notifies listeners when the trashcan is opening or closing.
Ui (opens new window) Class for a UI event.
UiBase (opens new window) Base class for a UI event. UI events are events that don't need to be sent over the wire for multi-user editing to work (e.g. scrolling the workspace, zooming, opening toolbox categories). UI events do not undo or redo.
VarBase (opens new window) Abstract class for a variable event.
VarCreate (opens new window) Notifies listeners that a variable model has been created.
VarDelete (opens new window) Notifies listeners that a variable model has been deleted.
VarRename (opens new window) Notifies listeners that a variable model was renamed.
ViewportChange (opens new window) Notifies listeners that the workspace surface's position or scale has changed.
Does not notify when the workspace itself resizes.

# Enumerations

Enumeration Description
BubbleType (opens new window)
ClickTarget (opens new window)

# Interfaces

Interface Description
AbstractEventJson (opens new window)
BlockBaseJson (opens new window)
BlockChangeJson (opens new window)
BlockCreateJson (opens new window)
BlockDeleteJson (opens new window)
BlockDragJson (opens new window)
BlockMoveJson (opens new window)
BubbleOpenJson (opens new window)
ClickJson (opens new window)
CommentBaseJson (opens new window)
CommentChangeJson (opens new window)
CommentCreateJson (opens new window)
CommentMoveJson (opens new window)
FinishedLoadingJson (opens new window)
MarkerMoveJson (opens new window)
SelectedJson (opens new window)
ThemeChangeJson (opens new window)
ToolboxItemSelectJson (opens new window)
TrashcanOpenJson (opens new window)
VarBaseJson (opens new window)
VarCreateJson (opens new window)
VarDeleteJson (opens new window)
VarRenameJson (opens new window)
ViewportChangeJson (opens new window)

# Variables

Variable Description
BLOCK_CHANGE (opens new window)
BLOCK_CREATE (opens new window)
BLOCK_DELETE (opens new window)
BLOCK_DRAG (opens new window)
BLOCK_MOVE (opens new window)
BUBBLE_OPEN (opens new window)
BUMP_EVENTS (opens new window)
CHANGE (opens new window)
clearPendingUndo (opens new window)
CLICK (opens new window)
COMMENT_CHANGE (opens new window)
COMMENT_CREATE (opens new window)
COMMENT_DELETE (opens new window)
COMMENT_MOVE (opens new window)
CREATE (opens new window)
DELETE (opens new window)
disable (opens new window)
disableOrphans (opens new window)
enable (opens new window)
filter (opens new window)
FINISHED_LOADING (opens new window)
fire (opens new window)
fromJson (opens new window)
get (opens new window)
getDescendantIds (opens new window)
getGroup (opens new window)
getRecordUndo (opens new window)
isEnabled (opens new window)
MARKER_MOVE (opens new window)
MOVE (opens new window)
SELECTED (opens new window)
setGroup (opens new window)
setRecordUndo (opens new window)
THEME_CHANGE (opens new window)
TOOLBOX_ITEM_SELECT (opens new window)
TRASHCAN_OPEN (opens new window)
UI (opens new window)
VAR_CREATE (opens new window)
VAR_DELETE (opens new window)
VAR_RENAME (opens new window)
VIEWPORT_CHANGE (opens new window)

# Type Aliases

Type Alias Description
BumpEvent (opens new window)