UIAPI
API for managing and communicating with the plugin's user interface.
UIAPI interface
API for managing and communicating with the plugin's user interface.
Signature:
interface UIAPIExample
// Send message to UI
creator.ui.postMessage({ type: "update", data: someData });
// Listen for messages from UI
creator.ui.onMessage((message) => {
console.log("Received from UI:", message);
});Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| Current theme information including CSS tokens |
Methods
Method | Description |
|---|---|
Sets up a message handler to receive messages from the plugin UI. | |
Sends a message to the plugin UI | |
Resizes the plugin UI window | |
Shows the plugin UI window |
Last updated: August 5, 2026 at 11:47 AMEdit this page