Skip to content

Type Alias: HostMessage ​

ts
type HostMessage = 
  | {
  type: "move";
  x: number;
  y: number;
}
  | {
  type: "close";
};

Defined in: types/desktop-engine.d.ts:118

A message sent to the app with the global postMessage('host', message).

  • move: reports the new position after the window is dragged; the app remembers it and passes it back in launchOptions.position on the next launch
  • close: asks the app to remove this content from the desktop

The SDK is released under the Apache License 2.0