{ "kind": "interface", "name": "@exact/camera", "version": "1.0.0", "uses": "@exact/media-capture@1.0.0", "grants": [ "device.camera" ], "substitute": "implementation", "shapes": { "Photo": { "path": "string", "type": "string", "size": "number", "width": "number", "height": "number" }, "PhotoCapabilities": { "redEyeReduction": "enum", "imageWidth": "PhotoRange", "imageHeight": "PhotoRange", "fillLightMode": "enum[]" }, "PhotoRange": { "min": "number", "max": "number", "step": "number" }, "CameraPicture": { "path": "string" } }, "views": { "exact-camera": { "props": { "srcObject": { "type": "handle", "binds": true }, "object-fit": "option", "tapToFocus": "option", "pinchToZoom": "option" }, "events": [ "load" ], "displayed": true } }, "names": [ { "send": "takePhoto", "grants": [ "device.camera" ], "origin": "app", "foreground": true, "options": { "track": "handle", "fillLightMode": "option>", "imageWidth": "option", "imageHeight": "option", "redEyeReduction": "option", "path": { "type": "path", "access": "write", "optional": true } }, "answers": "Photo" }, { "source": "getPhotoCapabilities", "live": true, "grants": [ "device.camera" ], "options": { "track": "handle" }, "answers": "PhotoCapabilities" }, { "source": "picture", "live": true, "answers": "CameraPicture" } ] }