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:

Parameter Type Description
name "change" Should be 'change'.
callback () => unknown The callback function.
ctx? unknown The context passed as this to the callback function.

Returns: EventRefThe event reference.