The app package manifest shows how to specify the device capability name for the Point of Service (POS) devices. Shows and hides the video preview window with the ShowVideoPreviewAsyncĬontrols the software trigger with the StartSoftwareTriggerAsync To determine what symbology attributes are supported by the scannerĪnd the SetSymbologyAttributesAsync methodĭetects camera-based barcode scanners by checking the VideoDeviceId propertyĪnd shows an in-app preview of the barcode camera. Uses the GetSymbologyAttributesAsync method ![]() To determine which symbologies are supported by the scanner Uses the GetSupportedSymbologiesAsync method The event handler for ReleaseDeviceRequested shows how retain the device. The second scenario in this sample shows the release and retain functionality. When an application gets a request to release its exclusive claim to the barcode scanner, it must handle the request by retaining the device otherwise, it will lose its claim. Uses DataReceived and ReleaseDeviceRequested events. Uses ClaimScannerAsync to claim the device. To enumerate and select the first barcode scanner.Ĭlaim the barcode scanner for exclusive use The samples collection, and GitHub, see Get the UWP samples from GitHub.įor more samples, see the Samples portal on the Windows Dev Center. ![]() For more info on working with the ZIP file, Sure to unzip everything to access shared dependencies. Or you can download the entire collection as a single You can download this sample as a standalone ZIP file Note: This sample is part of a large collection of UWP feature samples. Shows how to obtain a barcode scanner, claim it for exclusive use, enable it to receive data, and read a barcode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |