Private ReadonlymessagePrivatesessionPrivate ReadonlydebugPrivate ReadonlyallowedPrivate ReadonlytargetPrivate ReadonlymessageReturns the current session ID, or null if no start command has been received yet.
Send voeReadyNotification to the host.
Call this after registering onStartCommand, as the host will respond
with a voeStartCommand immediately upon receiving this notification.
Notification payload (stringified metadata JSON-LD required by spec)
Send voeDefinitionChangedNotification to the host whenever the user edits the unit.
The full, updated definition is always sent — not a diff. The host stores it
for later use by a player. The variables list must always be current and is
sent alongside the definition so the schemer can prepare the coding scheme.
dependenciesToPlay and dependenciesToEdit should list all external files or
services required at runtime. The host can warn if a dependency is unavailable.
Requires an active session (i.e. onStartCommand must have fired first).
OptionalunitDefinition: stringThe complete, updated unit definition serialised as a string
OptionalunitDefinitionType: stringOptional format/version identifier for the definition
Optionalvariables: MainSchema.VariableInfo[]Current list of all variables in the unit
OptionaldependenciesToPlay: MainSchema.Dependency[]Optional dependencies needed during playback (e.g. GeoGebra)
OptionaldependenciesToEdit: MainSchema.Dependency[]Optional dependencies needed during editing (e.g. GeoGebra)
OptionalsharedParameters: MainSchema.SharedParameter[]Optional shared parameters for cross-module data exchange
Register a handler for voeStartCommand.
The StartCommand is mandatory for the Editor – it carries the unit
definition and configuration the editor needs to initialise its UI.
Per spec, messages without a sessionId are silently discarded.
The session ID is stored automatically before your callback is called.
Register this handler before calling sendReady().
Typical usage in the callback:
unitDefinition into the editor UI (if provided)editorConfig.role to restrict/expand available featureseditorConfig.directDownloadUrl for lazy-loaded resources (e.g. GeoGebra)editorConfig.sharedParameters for cross-module coordinationCalled with the full start-command payload
Verona Editor Interface Handles communication between editor and host application.
Lifecycle