forked from Blendman974/faceclaw
Add options to load an app from a URL or a QR code
(The QR code reading does not work yet)
This commit is contained in:
1 parent
6e4ece5dc7
commit
92cd05b6ca
22 files changed
+685
-93
No files matched your search
@@ -37,6 +37,12 @@ export type InProcessWindowOptions = {
|
||||
menuItems?: () => MenuItem[];
|
||||
/** Shared actions; requestRender is rebound to this window's render. */
|
||||
actions: LayerActions;
|
||||
/**
|
||||
* Accept text aimed at this window (voice input). Supply it for apps with a
|
||||
* layer that takes dictation; leaving it out is what tells the shell not to
|
||||
* offer "Type Into App" for this window.
|
||||
*/
|
||||
receiveTextInput?: (text: string) => void;
|
||||
baseLayer: Layer;
|
||||
submitFrame: (planes: Plane[], paintMs: number, frameId: number) => Promise<void>;
|
||||
setSurfaceVisible: (visible: boolean) => void;
|
||||
@@ -189,6 +195,7 @@ export function createInProcessWindow(options: InProcessWindowOptions): InProces
|
||||
await render(frameId);
|
||||
},
|
||||
requestRender,
|
||||
receiveTextInput: options.receiveTextInput,
|
||||
setForeground: (foreground) => {
|
||||
options.setSurfaceVisible(foreground);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user