Skip to content

WorkspaceProtocolHandler.on('change') method

WorkspaceProtocolHandler › on(‘change’)

Unofficial

Triggered when the set of trusted actions changes.

Signature:

on(name: "change", callback: () => unknown, ctx?: unknown): EventRef

Parameters:

ParameterTypeDescription
name"change"Should be 'change'.
callback() => unknownThe callback function.
ctx?unknownThe context passed as this to the callback function.

Returns: EventRefThe event reference.