-api-id | -api-type | -api-device-family-note |
---|---|---|
M:Windows.Devices.PointOfService.BarcodeScanner.GetDefaultAsync |
winrt method |
xbox |
Returns the first available barcode scanner.
The first available barcode scanner. Returns a null object in the following cases:
- A device is not found.
- Access denied to the existing device. The user can deny access to a device, which is not treated as an exception.
[!code-cppCreateBarcodeScanner]
[!code-csharpCreateBarcodeScanner]
[!code-jsCreateBarcodeScannerJS]