Function: postMessage()
Call Signature
ts
function postMessage(name, message): void;Defined in: types/desktop-engine.d.ts:5387
Sends a message to the app. Widgets and desktop pets placed on the desktop use 'host' to report the window position or to ask to be removed.
Parameters
| Parameter | Type |
|---|---|
name | "host" |
message | HostMessage |
Returns
void
Call Signature
ts
function postMessage(name, message?): void;Defined in: types/desktop-engine.d.ts:5389
Sends a message to the app (native side), received by the handler the app registered for name
Parameters
| Parameter | Type |
|---|---|
name | string |
message? | unknown |
Returns
void
