Skip to content

Commit f5b0101

Browse files
authored
Merge pull request #3677 from Shopify/cappslock/chore/2026-01-rc/update-scanner-API-docs
Add docs for show/hide scanner API methods
2 parents d16a1e8 + 49e9b5d commit f5b0101

File tree

1 file changed

+8
-0
lines changed
  • packages/ui-extensions/src/surfaces/point-of-sale/api/scanner-api

1 file changed

+8
-0
lines changed

packages/ui-extensions/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ export interface ScannerApiContent {
5050
* Access available scanner sources on the device. Use to check which scanners are available (camera, external, or embedded).
5151
*/
5252
sources: ScannerSources;
53+
/**
54+
* Show the camera scanner.
55+
*/
56+
showCameraScanner: () => void;
57+
/**
58+
* Hide the camera scanner.
59+
*/
60+
hideCameraScanner: () => void;
5361
}
5462

5563
/**

0 commit comments

Comments
 (0)