Skip to main content

events

Functions

emitRemoveWidgetsToCanvas()

emitRemoveWidgetsToCanvas(payload): Promise<void>

Emit the "remove-widgets" event to the canvas window.

Parameters

ParameterTypeDescription
payloadRemoveWidgetsPayloadThe payload of the event.

Returns

Promise<void>

Defined in

events.ts:42


emitRenderWidgetToCanvas()

emitRenderWidgetToCanvas(payload): Promise<void>

Emit the "render-widget" event to the canvas window.

Parameters

ParameterTypeDescription
payloadRenderWidgetPayloadThe payload of the event.

Returns

Promise<void>

Defined in

events.ts:21


emitSwitchThemeAppearanceToCanvas()

emitSwitchThemeAppearanceToCanvas(payload): Promise<void>

Emit the "switch-theme-appearance" event to the canvas window.

Parameters

ParameterTypeDescription
payloadThemeAppearanceThe payload of the event.

Returns

Promise<void>

Defined in

events.ts:84


emitUpdateSettingToManager()

emitUpdateSettingToManager(payload): Promise<void>

Emit the "update-setting" event to the manager window.

Parameters

ParameterTypeDescription
payloadUpdateSettingPayloadThe payload of the event.

Returns

Promise<void>

Defined in

events.ts:63


listenToExitApp()

listenToExitApp(handler): Promise<UnlistenFn>

Listen to the "exit-app" event.

Parameters

ParameterTypeDescription
handlerEventCallback<null>The callback function to handle the event.

Returns

Promise<UnlistenFn>

A promise that resolves to a function to unlisten to the event.

Defined in

events.ts:106


listenToRemoveWidgets()

listenToRemoveWidgets(handler): Promise<UnlistenFn>

Listen to the "remove-widgets" event.

Parameters

ParameterTypeDescription
handlerEventCallback<RemoveWidgetsPayload>The callback function to handle the event.

Returns

Promise<UnlistenFn>

A promise that resolves to a function to unlisten to the event.

Defined in

events.ts:52


listenToRenderWidget()

listenToRenderWidget(handler): Promise<UnlistenFn>

Listen to the "render-widget" event.

Parameters

ParameterTypeDescription
handlerEventCallback<RenderWidgetPayload>The callback function to handle the event.

Returns

Promise<UnlistenFn>

A promise that resolves to a function to unlisten to the event.

Defined in

events.ts:31


listenToShowToast()

listenToShowToast(handler): Promise<UnlistenFn>

Listen to the "show-toast" event.

Parameters

ParameterTypeDescription
handlerEventCallback<ShowToastPayload>The callback function to handle the event.

Returns

Promise<UnlistenFn>

A promise that resolves to a function to unlisten to the event.

Defined in

events.ts:116


listenToSwitchThemeAppearance()

listenToSwitchThemeAppearance(handler): Promise<UnlistenFn>

Listen to the "switch-theme-appearance" event.

Parameters

ParameterTypeDescription
handlerEventCallback<ThemeAppearance>The callback function to handle the event.

Returns

Promise<UnlistenFn>

A promise that resolves to a function to unlisten to the event.

Defined in

events.ts:94


listenToUpdateSetting()

listenToUpdateSetting(handler): Promise<UnlistenFn>

Listen to the "update-setting" event.

Parameters

ParameterTypeDescription
handlerEventCallback<UpdateSettingPayload>The callback function to handle the event.

Returns

Promise<UnlistenFn>

A promise that resolves to a function to unlisten to the event.

Defined in

events.ts:73