forked from Blendman974/faceclaw
Merge branch 'main' into glanceboard-tilt-angle-and-glance-down
This commit is contained in:
commit
37d81d0308
416 files changed
+34629
-3885
No files matched your search
@@ -30,6 +30,13 @@ export type AppDefinition = {
|
||||
boot?: (ctx: AppContext) => void;
|
||||
/** False for apps that must not appear in the launcher grid (the launcher itself). */
|
||||
showInLauncher?: boolean;
|
||||
/**
|
||||
* False while the paired glasses can't run the app (absent means they can).
|
||||
* It then leaves the launcher grid and what mirrors it: the watch remote and
|
||||
* the apps.launch tool. A window restored from before a re-pair still opens,
|
||||
* so the app needs to say what's wrong rather than assume it never runs.
|
||||
*/
|
||||
isSupported?: () => boolean;
|
||||
/** Present on the app that handles text shared via the Android share intent. */
|
||||
openSharedText?: (ctx: AppContext, title: string, text: string) => void;
|
||||
/**
|
||||
@@ -182,6 +189,8 @@ export async function launchWorkerAppWindow(
|
||||
matchExistingBy?: "appId" | "windowId";
|
||||
/** Deliver watch swipes raw instead of the fallback (see WorkerWindowSpec). */
|
||||
acceptsDirectional?: boolean;
|
||||
/** Deliver hardware-keyboard keys as keys (see WorkerWindowSpec). */
|
||||
acceptsKeys?: boolean;
|
||||
},
|
||||
): Promise<void> {
|
||||
const existing = shell
|
||||
@@ -202,6 +211,7 @@ export async function launchWorkerAppWindow(
|
||||
icon: options.icon,
|
||||
focus: true,
|
||||
acceptsDirectional: options.acceptsDirectional,
|
||||
acceptsKeys: options.acceptsKeys,
|
||||
});
|
||||
ctx.appendLog(`launched ${options.windowId}`);
|
||||
}
|
||||
Reference in new issue
Block a user