MentraOS / examples /bluetooth /react-native /modules /mentra-barcode-scanner /src /MentraBarcodeScannerModule.ts
Download examples/bluetooth/react-native/modules/mentra-barcode-scanner/src/MentraBarcodeScannerModule.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 604 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/examples/bluetooth/react-native/modules/mentra-barcode-scanner/src/MentraBarcodeScannerModule.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/examples/bluetooth/react-native/modules/mentra-barcode-scanner/src/MentraBarcodeScannerModule.ts
-
curl -L -o MentraBarcodeScannerModule.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/examples/bluetooth/react-native/modules/mentra-barcode-scanner/src/MentraBarcodeScannerModule.ts
604 Bytes
| import {NativeModule, requireNativeModule} from 'expo'; | |
| import type {BarcodeScanResult, ImageMetadata, TestBarcodeImage} from './MentraBarcodeScanner.types'; | |
| declare class MentraBarcodeScannerModule extends NativeModule<{}> { | |
| createTestBarcodeImage(value: string): Promise<TestBarcodeImage>; | |
| getImageMetadata(imageUri: string): Promise<ImageMetadata>; | |
| isSupported(): Promise<boolean>; | |
| openImage(imageUri: string): Promise<void>; | |
| scanImage(imageUri: string): Promise<BarcodeScanResult[]>; | |
| } | |
| export default requireNativeModule<MentraBarcodeScannerModule>('MentraBarcodeScanner'); | |