Seed Bible extension API (v1.18.0) / seed-bible/extensions / SandboxPortalHandle
Interface: SandboxPortalHandle
Returned by sb.portals.open: a pane handle, plus messaging.
Extends
Properties
close
close: () => Promise<void>;Closes the pane.
Returns
Promise<void>
Inherited from
onClose
onClose: (listener: () => void) => void;Called once when the pane closes, however it closed.
Parameters
| Parameter | Type |
|---|---|
listener | () => void |
Returns
void
Inherited from
onMessage
onMessage: (listener: (message: unknown) => void) => void;Called with each message the pattern sends with os.sendEmbedMessage.
Parameters
| Parameter | Type |
|---|---|
listener | (message: unknown) => void |
Returns
void
paneId
paneId: string;The pane's id, for sb.panes.close.
Inherited from
send
send: (message: SandboxJsonValue) => Promise<void>;Sends a JSON message (at most 64 KB) into the portal's CasualOS instance. Rejects with unavailable until the portal has loaded.
Parameters
| Parameter | Type |
|---|---|
message | SandboxJsonValue |
Returns
Promise<void>