Download mobile/src/effects/buttonCapturePolicy.test.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/effects/buttonCapturePolicy.test.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/src/effects/buttonCapturePolicy.test.ts
-
curl -L -o buttonCapturePolicy.test.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/effects/buttonCapturePolicy.test.ts
482 Bytes
| import {shouldUseMentraLiveNativeCapture} from "./buttonCapturePolicy" | |
| describe("Mentra Live button capture policy", () => { | |
| it("uses native photo/video capture when no miniapp subscribes to button presses", () => { | |
| expect(shouldUseMentraLiveNativeCapture([])).toBe(true) | |
| }) | |
| it("routes button presses to miniapps when at least one active subscriber exists", () => { | |
| expect(shouldUseMentraLiveNativeCapture(["com.example.subscriber"])).toBe(false) | |
| }) | |
| }) | |